|
@@ -132,7 +132,10 @@ class PcInfo(View):
|
|
|
region_name='cn-northwest-1')
|
|
|
version_list = []
|
|
|
for i in range(2):
|
|
|
- app_list = Pc_Info.objects.filter(pc_name=pc_name, bundle_version=bundle_version, pc_test=pc_test, is_update=i)
|
|
|
+ if pc_test == '1': # 测试版返回所有版本中的最新版本
|
|
|
+ app_list = Pc_Info.objects.filter(pc_name=pc_name, bundle_version=bundle_version, is_update=i)
|
|
|
+ else:
|
|
|
+ app_list = Pc_Info.objects.filter(pc_name=pc_name, bundle_version=bundle_version, pc_test=pc_test, is_update=i)
|
|
|
# 当前软件不存在强制更新(is_update=1)的版本返回空
|
|
|
if not app_list.exists():
|
|
|
res = {'pc_name': '',
|