Ver Fonte

更新扫码API

zhangdongming há 2 anos atrás
pai
commit
c491b10379
1 ficheiros alterados com 6 adições e 6 exclusões
  1. 6 6
      Controller/TestApi.py

+ 6 - 6
Controller/TestApi.py

@@ -985,12 +985,12 @@ class testView(View):
             results1 = json.loads(res1.text)
             results1['result']['server'] = 2
             results_data.append(results1['result'])
-            res2 = requests.post("https://api.zositeche.com/testApi/getSerialNumberInfo",
-                                 data={'serialNumber': serial_number}, timeout=3)
-            results2 = json.loads(res2.text)
-            results2['result']['server'] = 3
-            results2['result']['status'] = '已分配'
-            results_data.append(results2['result'])
+            # res2 = requests.post("https://api.zositeche.com/testApi/getSerialNumberInfo",
+            #                      data={'serialNumber': serial_number}, timeout=5)
+            # results2 = {}
+            # results2['result']['server'] = 3
+            # results2['result']['status'] = '已分配'
+            # results_data.append(results2['result'])
             is_ok = True
             operation = ''
             status_log = ''