Browse Source

Update PageController.class.php

star7th 7 years ago
parent
commit
35cddc88c0
1 changed files with 5 additions and 1 deletions
  1. 5 1
      server/Application/Api/Controller/PageController.class.php

+ 5 - 1
server/Application/Api/Controller/PageController.class.php

@@ -65,6 +65,10 @@ class PageController extends BaseController {
             $this->sendError(10103);
             return;
         }
+        if (!$page_content) {
+            $this->sendError(10103,"不允许保存空内容,请随便写点什么");
+            return;
+        }
 
         $data['page_title'] = $page_title ;
         $data['page_content'] = $page_content ;
@@ -229,4 +233,4 @@ class PageController extends BaseController {
 
     }
 
-}
+}