|
@@ -524,6 +524,12 @@ def getNewVerInterface(request):
|
|
|
file_path = equipment.filePath
|
|
|
# path = file_path.replace('static/Upgrade/', '').replace('\\', '/')
|
|
|
# url = SERVER_DOMAIN + '/OTA/downloads/' + path + '?time=' + str(time.time())
|
|
|
+ # 检测ip进行替换
|
|
|
+ serverip = '54.215.154.29'
|
|
|
+ client_ip = CommonService.get_ip_address(request)
|
|
|
+ if serverip == client_ip:
|
|
|
+ SERVER_DOMAIN = 'http://54.215.154.29'
|
|
|
+ # get_ip_address =
|
|
|
url = SERVER_DOMAIN + '/OTA/downloadsPack/' + file_path + '?time=' + str(time.time())
|
|
|
return response.json(0, {
|
|
|
'ver': ver,
|