zjz 4 年之前
父節點
當前提交
5a89cac1fd
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      Controller/MealManage.py

+ 2 - 1
Controller/MealManage.py

@@ -85,6 +85,7 @@ class MealManage(View):
         discount_price = request_dict.get('discount_price', None)
         discount_content = request_dict.get('discount_content', None)
         expire = request_dict.get('expire', None)
+        symbol = request_dict.get('symbol', None)
 
         if not title or not id or not price or not day or not content:
             return response.json(444, 'title,id,price,content,day,bucketID')
@@ -97,7 +98,7 @@ class MealManage(View):
                 return response.json(10, '已存在')
             store_meal = Store_Meal(id=id, title=title, price=price, content=content, day=day, bucket_id=bucketID,
                                     currency=currency, virtual_price=virtual_price, is_discounts=is_discounts,
-                                    discount_price=discount_price, discount_content=discount_content, expire=expire)
+                                    discount_price=discount_price, discount_content=discount_content, expire=expire, symbol=symbol)
             store_meal.save()
             paytype = paytype.split(',')
             if len(paytype) > 0: