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