|
@@ -114,6 +114,7 @@ class VersionManagement(View):
|
|
resolutionRatio = request_dict.get('resolutionRatio', '')
|
|
resolutionRatio = request_dict.get('resolutionRatio', '')
|
|
Description = request_dict.get('Description', '')
|
|
Description = request_dict.get('Description', '')
|
|
status = request_dict.get('status', 0)
|
|
status = request_dict.get('status', 0)
|
|
|
|
+ isPopup = request_dict.get('isPopup', 0)
|
|
|
|
|
|
if not all([file, mci, lang, ESN, max_ver, channel, resolutionRatio]):
|
|
if not all([file, mci, lang, ESN, max_ver, channel, resolutionRatio]):
|
|
return response.json(444)
|
|
return response.json(444)
|
|
@@ -124,6 +125,7 @@ class VersionManagement(View):
|
|
channel = int(channel)
|
|
channel = int(channel)
|
|
resolutionRatio = int(resolutionRatio)
|
|
resolutionRatio = int(resolutionRatio)
|
|
status = int(status)
|
|
status = int(status)
|
|
|
|
+ isPopup = int(isPopup)
|
|
# 文件名为设备版本,最后一个'.'的前面为软件版本,后面为设备规格名称
|
|
# 文件名为设备版本,最后一个'.'的前面为软件版本,后面为设备规格名称
|
|
# V2.2.4.16E201252CA,软件版本:2.2.4,设备规格名称:16E201252CA
|
|
# V2.2.4.16E201252CA,软件版本:2.2.4,设备规格名称:16E201252CA
|
|
# V1.7.2.36C11680X30411F000600000150001Z,软件版本:1.7.2,设备规格名称:36C11680X30411F000600000150001Z
|
|
# V1.7.2.36C11680X30411F000600000150001Z,软件版本:1.7.2,设备规格名称:36C11680X30411F000600000150001Z
|
|
@@ -147,7 +149,7 @@ class VersionManagement(View):
|
|
fileMd5 = hashlib.md5(file_data).hexdigest()
|
|
fileMd5 = hashlib.md5(file_data).hexdigest()
|
|
data_dict = {'mci': mci, 'lang': lang, 'ESN': ESN, 'max_ver': max_ver, 'channel': channel,
|
|
data_dict = {'mci': mci, 'lang': lang, 'ESN': ESN, 'max_ver': max_ver, 'channel': channel,
|
|
'resolutionRatio': resolutionRatio, 'Description': Description, 'status': status,
|
|
'resolutionRatio': resolutionRatio, 'Description': Description, 'status': status,
|
|
- 'version': version, 'softwareVersion': softwareVersion, 'code': code,
|
|
|
|
|
|
+ 'is_popup': isPopup, 'version': version, 'softwareVersion': softwareVersion, 'code': code,
|
|
'chipModelList2Code': chipModelList2Code, 'type': type, 'companyCode': companyCode,
|
|
'chipModelList2Code': chipModelList2Code, 'type': type, 'companyCode': companyCode,
|
|
'fileSize': fileSize, 'filePath': filePath, 'fileMd5': fileMd5, 'update_time': nowTime}
|
|
'fileSize': fileSize, 'filePath': filePath, 'fileMd5': fileMd5, 'update_time': nowTime}
|
|
# Equipment_Version表创建或更新数据
|
|
# Equipment_Version表创建或更新数据
|