chenjunkai 6 年之前
父节点
当前提交
11ae0f3cf9
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      Controller/MealManage.py

+ 2 - 1
Controller/MealManage.py

@@ -148,7 +148,8 @@ class MealManage(View):
                         store_meal.content = content
                         store_meal.content = content
                         store_meal.day = day
                         store_meal.day = day
                         store_meal.bucket_id = bucketID
                         store_meal.bucket_id = bucketID
-                        store_meal.currency = currency
+                        if currency:
+                            store_meal.currency = currency
                         store_meal.save()
                         store_meal.save()
                         return response.json(0, {'update_id': store_meal.id,
                         return response.json(0, {'update_id': store_meal.id,
                                                  'update_time': str(now_time)})
                                                  'update_time': str(now_time)})