mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
更正接口结果
This commit is contained in:
parent
5fe8f95ddd
commit
6afb70f630
@ -43,7 +43,7 @@ class Article extends Controller
|
|||||||
$this->app->db->name('DataArticleHistory')->insert($history);
|
$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');
|
$query->where(['deleted' => 0, 'status' => 1])->withoutField('sort,status,deleted');
|
||||||
$result = $query->order('sort desc,id desc')->page(false, false);
|
$result = $query->order('sort desc,id desc')->page(false, false);
|
||||||
foreach ($result['list'] as &$vo) $vo['tags'] = trim($vo['tags'], ',');
|
foreach ($result['list'] as &$vo) $vo['tags'] = trim($vo['tags'], ',');
|
||||||
|
@ -38,6 +38,7 @@ abstract class Member extends Controller
|
|||||||
{
|
{
|
||||||
$this->token = input('token', '');
|
$this->token = input('token', '');
|
||||||
$this->member = $this->getMember();
|
$this->member = $this->getMember();
|
||||||
|
$this->mid = $this->member['id'];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user