فهرست منبع

优化Vsees云存套餐返回

linhaohong 7 ماه پیش
والد
کامیت
f26a1f8bb5
1فایلهای تغییر یافته به همراه7 افزوده شده و 1 حذف شده
  1. 7 1
      Controller/CloudStorage.py

+ 7 - 1
Controller/CloudStorage.py

@@ -180,7 +180,7 @@ class CloudStorageView(View):
     @staticmethod
     def do_commodity_list(request_dict, user_id, response):  # 查询套餐列表
         """
-        查询套餐列表
+        查询云存套餐列表
         @param user_id: 用户id
         @param request_dict: 请求数据
         @request_dict mold: 存储区域类型
@@ -195,6 +195,8 @@ class CloudStorageView(View):
         is_ai = request_dict.get('is_ai', 0)
         app_type = request_dict.get('app_type', None)
         ios_version = request_dict.get('ios_version', "")
+        app_bundle_id = request_dict.get('app_bundle_id', None)
+
         if not all([uid]):
             return response.json(444)
         # 苹果内购,app_type:1 或 app_type:2
@@ -249,6 +251,10 @@ class CloudStorageView(View):
                 else:
                     store_qs = store_qs.exclude(pay_type=5)
 
+                # 判断是否支持微信支付
+                if app_bundle_id == "com.cloudlife.commissionf_a":
+                    store_qs = store_qs.exclude(pay_type=3)
+
                 if uid not in ["VXJ267WU5NZ1S89H111A", "18SM4J9DYWB2AEG1111A",
                                "517J385BNUGP3CPP111A", "5Z1LZLK7D5Y6WKDE111A"] and CONFIG_INFO == CONFIG_TEST:
                     store_qs = store_qs.exclude(id__in=[88, 102])