Bläddra i källkod

后台添加套餐

peng 1 år sedan
förälder
incheckning
a8ad17a994
1 ändrade filer med 4 tillägg och 1 borttagningar
  1. 4 1
      Controller/MealManage.py

+ 4 - 1
Controller/MealManage.py

@@ -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: