chenjunkai 6 жил өмнө
parent
commit
6eb9f7bcca

+ 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),