更新系统公告
This commit is contained in:
parent
c09e2873b6
commit
88727a0f30
|
@ -51,6 +51,9 @@ class NoteIndex extends ApiController
|
|||
$this->checkAuth();
|
||||
$id = empty(get_params('id')) ? 0 : get_params('id');
|
||||
$note = Db::name('Note')->where(['id' => $id])->find();
|
||||
if (empty($note)) {
|
||||
$this->apiError('公告不存在');
|
||||
}
|
||||
$note['cate_title'] = Db::name('NoteCate')->where(['id' => $note['cate_id']])->value('title');
|
||||
$this->apiSuccess('获取成功', $note);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue