Browse Source

OTA响应结果打印

zhangdongming 3 năm trước cách đây
mục cha
commit
7e4690ef1c
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      Controller/OTAEquipment.py

+ 3 - 1
Controller/OTAEquipment.py

@@ -550,11 +550,13 @@ def getNewVerInterface(request):
             #     url = 'http://www.zositech.xyz/dlotapack/' + file_path
             # else:
             #     url = SERVER_DOMAIN + 'dlotapack/' + file_path
-            return response.json(0, {
+            result = response.json(0, {
                 'ver': ver,
                 'url': url,
                 "Description": equipment.Description,
             })
+            logger.info('<<<<<响应结果={}'.format(result))
+            return result
         else:
             return response.json(902)
     else: