lang 3 жил өмнө
parent
commit
8f8f9f8246

+ 1 - 0
Controller/AppSetController.py

@@ -73,6 +73,7 @@ class AppSetView(View):
                 dict_json['popupsStartTime'] = promotion[0]['startTime']
                 dict_json['popupsEndTime'] = promotion[0]['endTime']
                 dict_json['popupsContent'] = json.loads(promotion[0]['popups']).get(lang,'')
+                dict_json['nowTime'] = int(time.time())
             if 'editionUpgrading' in dict_json:
                 if dict_json['editionUpgrading'] == 1:
                     if lang == 'cn':

+ 2 - 1
Controller/CloudStorage.py

@@ -243,7 +243,8 @@ class CloudStorageView(View):
                     'promotionStartTime': promotion[0]['startTime'],
                     'promotionEndTime': promotion[0]['endTime'],
                     'promotionName': json.loads(promotion[0]['ruleName']).get(lang, ''),
-                    'promotionDesc': json.loads(promotion[0]['ruleDesc']).get(lang, '')
+                    'promotionDesc': json.loads(promotion[0]['ruleDesc']).get(lang, ''),
+                    'nowTime':int(time.time())
                 }
             else:
                 promotion = {