chenjunkai 6 年之前
父節點
當前提交
7d472abf61
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      Controller/OTAEquipment.py

+ 3 - 2
Controller/OTAEquipment.py

@@ -528,9 +528,10 @@ def getNewVerInterface(request):
                     serverip = '54.215.154.29'
                     serverip = '54.215.154.29'
                     client_ip = CommonService.get_ip_address(request)
                     client_ip = CommonService.get_ip_address(request)
                     if serverip == client_ip:
                     if serverip == client_ip:
-                        SERVER_DOMAIN = 'http://54.215.154.29'
+                        url = 'http://54.215.154.29/OTA/downloadsPack/' + file_path + '?time=' + str(time.time())
+                    else:
+                        url = SERVER_DOMAIN + '/OTA/downloadsPack/' + file_path + '?time=' + str(time.time())
                     # get_ip_address =
                     # get_ip_address =
-                    url = SERVER_DOMAIN + '/OTA/downloadsPack/' + file_path + '?time=' + str(time.time())
                     return response.json(0, {
                     return response.json(0, {
                         'ver': ver,
                         'ver': ver,
                         'url': url,
                         'url': url,