更正接口结果

This commit is contained in:
Anyon 2020-07-13 16:56:22 +08:00
parent 5fe8f95ddd
commit 6afb70f630
2 changed files with 2 additions and 1 deletions

View File

@ -43,7 +43,7 @@ class Article extends Controller
$this->app->db->name('DataArticleHistory')->insert($history);
}
}
$query = $this->_query('DataArticleContent')->equal('type,id')->like('title,tags,type');
$query = $this->_query('DataArticleContent')->equal('type,id')->like('title,tags');
$query->where(['deleted' => 0, 'status' => 1])->withoutField('sort,status,deleted');
$result = $query->order('sort desc,id desc')->page(false, false);
foreach ($result['list'] as &$vo) $vo['tags'] = trim($vo['tags'], ',');

View File

@ -38,6 +38,7 @@ abstract class Member extends Controller
{
$this->token = input('token', '');
$this->member = $this->getMember();
$this->mid = $this->member['id'];
}
/**