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