|
@@ -527,7 +527,8 @@ class DeviceManagement(View):
|
|
|
return response.json(444)
|
|
|
if lang != 'cn' and lang != 'cn_tw':
|
|
|
lang = 'en'
|
|
|
- if version_number >= '2.6.2.1': # 判断是否低于2.6.2.1版本
|
|
|
+ zhong_xin = ['com.cloudlife.commissionf', 'com.cloudlife.commissionf_a']
|
|
|
+ if version_number >= '2.6.2.1' or app_bundle_id in zhong_xin: # 判断是否低于2.6.2.1版本
|
|
|
return self.newAppVersion(response, app_bundle_id, lang, version_number) # 获取2.6.2.1及以上版本设备信息图标
|
|
|
else:
|
|
|
version_number_qs = AppVersionNumber.objects.filter(app_bundle__app_bundle_id=app_bundle_id,
|
|
@@ -606,7 +607,9 @@ class DeviceManagement(View):
|
|
|
version_number = version_qs[0]['version_number']
|
|
|
all_version_list = [item[key] for item in version_number_qs for key in item]
|
|
|
index = all_version_list.index(version_number) # 获取版本号的索引
|
|
|
- if app_bundle_id == 'com.ansjer.zccloud' or app_bundle_id == 'com.ansjer.zccloud_a': # 判断App包
|
|
|
+ zosi_samrt = ['com.ansjer.zccloud', 'com.ansjer.zccloud_a']
|
|
|
+ zhong_xin = ['com.cloudlife.commissionf', 'com.cloudlife.commissionf_a']
|
|
|
+ if app_bundle_id in zosi_samrt or app_bundle_id in zhong_xin: # 判断App包
|
|
|
version_number_qs = version_number_qs.values('version_number')[0:index + 1]
|
|
|
else:
|
|
|
version_number_qs = version_number_qs.values('version_number')[1:index + 1]
|