|
@@ -458,9 +458,9 @@ class AiView(View):
|
|
|
uid = request_dict.get('uid', None)
|
|
|
channel = request_dict.get('channel', None)
|
|
|
pay_type = int(request_dict.get('pay_type', 1))
|
|
|
- ai_meal_id = request_dict.get('ai_meal_id', None)
|
|
|
+ rank = request_dict.get('rank', None)
|
|
|
lang = request_dict.get('lang', 'en')
|
|
|
- if not uid or not channel or not pay_type or not ai_meal_id:
|
|
|
+ if not uid or not channel or not pay_type or not rank:
|
|
|
return response.json(444)
|
|
|
|
|
|
try:
|
|
@@ -478,7 +478,7 @@ class AiView(View):
|
|
|
# return response.json(10033)
|
|
|
|
|
|
# 获取ai套餐数据
|
|
|
- ai_sm_qs = AiStoreMeal.objects.filter(id=ai_meal_id, pay_type=pay_type, is_show=1, lang__lang=lang). \
|
|
|
+ ai_sm_qs = AiStoreMeal.objects.filter(id=rank, pay_type=pay_type, is_show=1, lang__lang=lang). \
|
|
|
values('lang__title', 'lang__content', 'currency', 'price')
|
|
|
if not ai_sm_qs.exists():
|
|
|
return response.json(173)
|
|
@@ -503,7 +503,7 @@ class AiView(View):
|
|
|
'currency': currency,
|
|
|
'addTime': nowTime,
|
|
|
'updTime': nowTime,
|
|
|
- 'ai_rank_id': ai_meal_id,
|
|
|
+ 'ai_rank_id': rank,
|
|
|
'rank_id': 1,
|
|
|
'order_type': 1,
|
|
|
}
|