|
@@ -55,6 +55,7 @@ class AppSetView(View):
|
|
|
|
|
|
# 查询
|
|
|
def do_query(self, request_dict, response):
|
|
|
+ lang = request_dict.get('lang', None)
|
|
|
appBundleId = request_dict.get('appBundleId', None)
|
|
|
if not appBundleId:
|
|
|
return response.json(444,'appBundleId')
|
|
@@ -71,6 +72,12 @@ class AppSetView(View):
|
|
|
sm_qs = AppSetModel.objects.filter(appBundleId=appBundleId)
|
|
|
count = sm_qs.count()
|
|
|
if count > 0:
|
|
|
+ if sm_qs[0]['editionUpgrading']:
|
|
|
+ if lang !='cn':
|
|
|
+ sm_qs[0]['editionUpgrading'] = 'Upgrading, please sign in later'
|
|
|
+ else:
|
|
|
+ sm_qs[0]['editionUpgrading'] = '正在升级,请稍后登录'
|
|
|
+
|
|
|
sm_qs = sm_qs.values("content")
|
|
|
# 添加到缓存,缓存时间为3600秒------指的是一个钟后再次访问,就会刷新缓存一次
|
|
|
content_json_str = list(sm_qs)[0]['content'].replace("'", '"')
|