Переглянути джерело

调整设备搜索工具缓慢问题

yf_fyh 3 роки тому
батько
коміт
29c102eaa7
1 змінених файлів з 2 додано та 2 видалено
  1. 2 2
      utils/utils.py

+ 2 - 2
utils/utils.py

@@ -14,7 +14,7 @@ def get_equip_list(d_id, isfullId=0):
     """
     if isfullId == 1:
         try:
-            bigdata_res = requests.post("http://8.136.98.49:8002/search/equip", data={"device_id": d_id, "isfullId": "1"},timeout=10)
+            bigdata_res = requests.post("http://127.0.0.1:8002/search/equip", data={"device_id": d_id, "isfullId": "1"},timeout=10)
             bigdata_dict = json.loads(bigdata_res.content.decode())
         except:
             bigdata_dict = {}
@@ -25,7 +25,7 @@ def get_equip_list(d_id, isfullId=0):
             siqing_dict = {}
     else:
         try:
-            bigdata_res = requests.post("http://8.136.98.49:8002/search/equip", data={"device_id": d_id}, timeout=10)
+            bigdata_res = requests.post("http://127.0.0.1:8002/search/equip", data={"device_id": d_id}, timeout=10)
             bigdata_dict = json.loads(bigdata_res.content.decode())
         except:
             bigdata_dict = {}