Browse Source

优化获取套餐名

peng 1 year ago
parent
commit
969decbe8d
1 changed files with 2 additions and 9 deletions
  1. 2 9
      Controller/CloudStorage.py

+ 2 - 9
Controller/CloudStorage.py

@@ -1703,10 +1703,7 @@ class CloudStorageView(View):
                                                                                                               'rank__is_ai',
                                                                                                               'rank__pixel_level',
                                                                                                               'rank__commodity_code',
-                                                                                                              'rank__lang__new_title',
-                                                                                                              'ai_rank',
-                                                                                                              'ai_rank__lang__title',
-                                                                                                              'ai_rank__lang__content')
+                                                                                                              'rank__lang__new_title')
                 if order_qs.exists():
                     order = order_qs[0]
                     if order['payType'] not in [10, 11]:
@@ -1734,11 +1731,7 @@ class CloudStorageView(View):
                         if order['order_type'] == 0:
                             value['bucket__content'] = order['rank__lang__new_title'].get('1', '')
                         elif order['order_type'] == 1:
-                            if order['ai_rank'] != 1:
-                                value['bucket__content'] = order['ai_rank__lang__title'] + '-' + order[
-                                    'ai_rank__lang__content']
-                            else:
-                                value['bucket__content'] = order['rank__lang__new_title'].get('2', '')
+                            value['bucket__content'] = order['rank__lang__new_title'].get('2', '')
                     else:  # cdk套餐
                         if order['rank__pay_type__id'] != 11:
                             if order['rank__pixel_level'] == 0 and order['rank__is_ai'] == 0: