|
@@ -85,6 +85,8 @@ class MealManage(View):
|
|
|
return response.json(444, 'title,id,price,content,day,bucketID')
|
|
|
try:
|
|
|
bucketQs = VodBucketModel.objects.filter(id=bucketID)
|
|
|
+ if Store_Meal.objects.filter(id=id):
|
|
|
+ return response.json(10,'已存在')
|
|
|
store_meal = Store_Meal(id=id, title=title, price=price, content=content, day=day, bucket_id=bucketID,currency=currency)
|
|
|
store_meal.save()
|
|
|
except Exception:
|