|
@@ -278,16 +278,16 @@ class AppSetView(View):
|
|
|
return response.json(0)
|
|
|
|
|
|
@staticmethod
|
|
|
- def status_by_ip(self, request, response):
|
|
|
+ def status_by_ip(request, response):
|
|
|
"""
|
|
|
根据ip 解析地址返回状态
|
|
|
"""
|
|
|
try:
|
|
|
- # 这里加status过滤条件条件
|
|
|
+ # 这里加sdStatus过滤条件条件
|
|
|
ip = CommonService.get_ip_address(request)
|
|
|
LOGGER.info(f"请求ip地址为 {ip}")
|
|
|
- status = 1
|
|
|
- response_data = {"status": status}
|
|
|
+ sdStatus = 1
|
|
|
+ response_data = {"sdStatus": sdStatus}
|
|
|
return response.json(0, response_data)
|
|
|
except Exception as e:
|
|
|
LOGGER.info('根据ip解析地址返回状态异常,errLine:{}, errMsg:{}'.format(e.__traceback__.tb_lineno, repr(e)))
|