Przeglądaj źródła

根据ip 解析地址返回状态

linhaohong 1 rok temu
rodzic
commit
a165a7c39c
1 zmienionych plików z 4 dodań i 4 usunięć
  1. 4 4
      Controller/AppSetController.py

+ 4 - 4
Controller/AppSetController.py

@@ -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)))