更新文章列表详情
This commit is contained in:
parent
fe51c65b32
commit
71d739ab44
|
@ -26,6 +26,7 @@ class ArticleIndex extends ApiController
|
|||
//查看文章列表
|
||||
public function index()
|
||||
{
|
||||
$this->checkAuth();
|
||||
$param = get_params();
|
||||
$uid = JWT_UID;
|
||||
$loginAdmin = Db::name('Admin')->where(['id' => $uid])->find();
|
||||
|
@ -62,6 +63,7 @@ class ArticleIndex extends ApiController
|
|||
//查看文章详情
|
||||
public function view()
|
||||
{
|
||||
$this->checkAuth();
|
||||
$id = get_params("id");
|
||||
if (empty($id)) {
|
||||
$this->apiError("文章id不能为空");
|
||||
|
|
Loading…
Reference in New Issue