Browse Source

编辑套餐语言content非必传

locky 3 years ago
parent
commit
baaa2d66a2
2 changed files with 2 additions and 23 deletions
  1. 2 2
      AdminController/AiServeController.py
  2. 0 21
      Ansjer/urls.py

+ 2 - 2
AdminController/AiServeController.py

@@ -234,11 +234,11 @@ class AiServeView(View):
         aiMealID = request_dict.get('aiMealID', None)
         lang = request_dict.get('lang', None)
         title = request_dict.get('title', None)
-        content = request_dict.get('content', None)
+        content = request_dict.get('content', '')
         discount_content = request_dict.get('discountContent', '')
         isEdit = request_dict.get('isEdit', None)
 
-        if not all([aiMealID, lang, title, content]):
+        if not all([aiMealID, lang, title]):
             return response.json(444)
 
         try:

+ 0 - 21
Ansjer/urls.py

@@ -400,24 +400,3 @@ urlpatterns = [
     re_path('(?P<path>.*)', LogManager.errorPath),
 
 ]
-
-#                                _(\_/)
-#                              ,((((^`\
-#                             ((((  (6 \
-#                           ,((((( ,    \
-#       ,,,_              ,(((((  /"._  ,`,
-#      ((((\\ ,...       ,((((   /    `-.-'
-#      )))  ;'    `"'"'""((((   (
-#     (((  /            (((      \
-#      )) |                      |
-#     ((  |        .       '     |
-#     ))  \     _ '      `t   ,.')
-#     (   |   y;- -,-""'"-.\   \/
-#     )   / ./  ) /         `\  \
-#        |./   ( (           / /'
-#        ||     \\          //'|
-#        ||      \\       _//'||
-#        ||       ))     |_/  ||
-#        \_\     |_/          ||
-#        `'"                  \_\
-#                             `'"