Browse Source

苹果内购 - 特定设备返回测试套餐

linhaohong 1 năm trước cách đây
mục cha
commit
4b11237126
1 tập tin đã thay đổi với 4 bổ sung2 xóa
  1. 4 2
      Controller/CloudStorage.py

+ 4 - 2
Controller/CloudStorage.py

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