瀏覽代碼

ota debug

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

+ 0 - 2
Controller/OTAEquipment.py

@@ -233,13 +233,11 @@ def getUpdataFileUrlInterface(request):
                 if file_path.find('static/Upgrade/') != -1:
                 if file_path.find('static/Upgrade/') != -1:
                     path = file_path.replace('static/Upgrade/', '').replace('\\', '/')
                     path = file_path.replace('static/Upgrade/', '').replace('\\', '/')
                     url = SERVER_DOMAIN + '/OTA/downloads/' + path + '?time=' + str(time.time())
                     url = SERVER_DOMAIN + '/OTA/downloads/' + path + '?time=' + str(time.time())
-                    https_url = url.replace('http','https')
                     urls.append(url)
                     urls.append(url)
             if len(urls) > 0:
             if len(urls) > 0:
                 return response.json(0, {
                 return response.json(0, {
                     "urlCount": len(urls),
                     "urlCount": len(urls),
                     "url": urls,
                     "url": urls,
-                    'https_url': https_url,
                     "fileSize": equipment.fileSize,
                     "fileSize": equipment.fileSize,
                     "Description": equipment.Description,
                     "Description": equipment.Description,
                 })
                 })