瀏覽代碼

修改返回特定套餐

linhaohong 1 年之前
父節點
當前提交
9d656f215e
共有 1 個文件被更改,包括 11 次插入4 次删除
  1. 11 4
      Controller/CloudStorage.py

+ 11 - 4
Controller/CloudStorage.py

@@ -236,12 +236,19 @@ class CloudStorageView(View):
 
                 if CONFIG_INFO != CONFIG_CN:  # 国内生产环境不筛选像素 加载所有上架套餐
                     store_qs = store_qs.filter(Q(pixel_level=pixel_level))
-                if is_ios and uid in ["517J385BNUGP3CPP111A", "MKNB6CWZEG988NTS111A","VXJ267WU5NZ1S89H111A","18SM4J9DYWB2AEG1111A"]:
-                    store_qs = store_qs.filter(pay_type__in=[5, 99])
-                elif is_ios:
+                if is_ios:
                     store_qs = store_qs.filter(pay_type=5)
                 else:
-                    store_qs = store_qs.exclude(pay_type__in=[5, 99])
+                    store_qs = store_qs.exclude(pay_type=5)
+                if uid not in ["VXJ267WU5NZ1S89H111A", "18SM4J9DYWB2AEG1111A",
+                               "517J385BNUGP3CPP111A"] and CONFIG_INFO == CONFIG_TEST:
+                    store_qs = store_qs.exclude(id=88)
+                elif uid not in ["VXJ267WU5NZ1S89H111A", "18SM4J9DYWB2AEG1111A",
+                                 "517J385BNUGP3CPP111A"] and CONFIG_INFO == CONFIG_US:
+                    store_qs = store_qs.exclude(id=34)
+                elif uid not in ["VXJ267WU5NZ1S89H111A", "18SM4J9DYWB2AEG1111A",
+                                 "517J385BNUGP3CPP111A"] and CONFIG_INFO == CONFIG_EUR:
+                    store_qs = store_qs.exclude(id=34)
             else:
                 is_ai = uid_set_qs[0]['is_ai']
                 is_ai = 1 if is_ai != 2 and CONFIG_INFO != CONFIG_CN else 0  # 国内不支持AI服务