|
@@ -1433,7 +1433,7 @@ class CloudStorageView(View):
|
|
|
order_id = CommonService.createOrderID()
|
|
|
now_time = int(time.time())
|
|
|
store_qs = Store_Meal.objects.filter(id=rank, lang__lang=lang, is_show=0).values("day", "bucket_id",
|
|
|
- "expire",
|
|
|
+ "expire", "is_ai",
|
|
|
'lang__content', 'price',
|
|
|
'currency', 'commodity_type')
|
|
|
if not store_qs.exists():
|
|
@@ -1448,6 +1448,8 @@ class CloudStorageView(View):
|
|
|
is_ai = 1 if uid_set_qs[0]['is_ai'] != 2 else 0
|
|
|
if is_ai != 1:
|
|
|
is_ai = self.check_ucode_exists(uid_set_qs[0]['ucode'])
|
|
|
+ if cdk:
|
|
|
+ is_ai = store_qs[0]['is_ai']
|
|
|
|
|
|
order_type = 1 if is_ai and CONFIG_INFO != CONFIG_CN else 0
|
|
|
use_flag = True
|