chenjunkai %!s(int64=6) %!d(string=hai) anos
pai
achega
6eb9f7bcca
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      Controller/OTAEquipment.py

+ 3 - 0
Controller/OTAEquipment.py

@@ -228,6 +228,9 @@ def getUpdataFileUrlInterface(request):
                     path = file_path.replace('static/Upgrade/', '').replace('\\', '/')
                     url = SERVER_DOMAIN + '/OTA/downloads/' + path + '?time=' + str(time.time())
                     urls.append(url)
+                if file_path.find('static/otapack') != -1:
+                    url = SERVER_DOMAIN + '/OTA/downloadsPack/' + file_path + '?time=' + str(time.time())
+                    urls.append(url)
             if len(urls) > 0:
                 return response.json(0, {
                     "urlCount": len(urls),