|
@@ -97,6 +97,8 @@ class MealManage(View):
|
|
|
expire = request_dict.get('expire', None)
|
|
|
symbol = request_dict.get('symbol', None)
|
|
|
is_show = request_dict.get('is_show', None)
|
|
|
+ is_ai = request_dict.get('is_ai', None)
|
|
|
+ pixel_level = request_dict.get('pixel_level', None)
|
|
|
|
|
|
# if not title or not id or not price or not day or not content:
|
|
|
if not id or not price or not day:
|
|
@@ -110,7 +112,8 @@ class MealManage(View):
|
|
|
return response.json(10, '已存在')
|
|
|
store_meal = Store_Meal(id=id, price=price, day=day, bucket_id=bucketID, commodity_code=commodity_code,
|
|
|
currency=currency, virtual_price=virtual_price, is_discounts=is_discounts,
|
|
|
- discount_price=discount_price, expire=expire, symbol=symbol, is_show=is_show)
|
|
|
+ discount_price=discount_price, expire=expire, symbol=symbol, is_show=is_show,
|
|
|
+ is_ai=is_ai, pixel_level=pixel_level)
|
|
|
store_meal.save()
|
|
|
paytype = paytype.split(',')
|
|
|
if len(paytype) > 0:
|