正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
@@ -19,7 +19,7 @@ class Article extends Api | @@ -19,7 +19,7 @@ class Article extends Api | ||
19 | { | 19 | { |
20 | 20 | ||
21 | // 无需登录的接口,*表示全部 | 21 | // 无需登录的接口,*表示全部 |
22 | - protected $noNeedLogin = ['getArticleType', 'getArticleInfo', 'getArticleList']; | 22 | + protected $noNeedLogin = ['getArticleType', 'getArticleInfo', 'getArticleList','addArticle']; |
23 | // 无需鉴权的接口,*表示全部 | 23 | // 无需鉴权的接口,*表示全部 |
24 | protected $noNeedRight = ['*']; | 24 | protected $noNeedRight = ['*']; |
25 | 25 | ||
@@ -619,7 +619,7 @@ class Article extends Api | @@ -619,7 +619,7 @@ class Article extends Api | ||
619 | } | 619 | } |
620 | 620 | ||
621 | $showType = $this->request->param('show_type', 1, 'int'); | 621 | $showType = $this->request->param('show_type', 1, 'int'); |
622 | - | 622 | + halt($_POST); |
623 | $desContent = $_POST['des_content']; | 623 | $desContent = $_POST['des_content']; |
624 | if(!$desContent) { | 624 | if(!$desContent) { |
625 | $this->error('您的文章内容不能为空'); | 625 | $this->error('您的文章内容不能为空'); |
-
请 注册 或 登录 后发表评论