...
|
...
|
@@ -19,7 +19,7 @@ class Article extends Api |
|
|
{
|
|
|
|
|
|
// 无需登录的接口,*表示全部
|
|
|
protected $noNeedLogin = ['getArticleType', 'getArticleInfo', 'getArticleList'];
|
|
|
protected $noNeedLogin = ['getArticleType', 'getArticleInfo', 'getArticleList','addArticle'];
|
|
|
// 无需鉴权的接口,*表示全部
|
|
|
protected $noNeedRight = ['*'];
|
|
|
|
...
|
...
|
@@ -619,7 +619,7 @@ class Article extends Api |
|
|
}
|
|
|
|
|
|
$showType = $this->request->param('show_type', 1, 'int');
|
|
|
|
|
|
halt($_POST);
|
|
|
$desContent = $_POST['des_content'];
|
|
|
if(!$desContent) {
|
|
|
$this->error('您的文章内容不能为空');
|
...
|
...
|
|