chenjunkai 6 年之前
父節點
當前提交
6eb9f7bcca
共有 1 個文件被更改,包括 3 次插入0 次删除
  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),