更新文章列表详情

This commit is contained in:
yaooo 2023-10-30 17:40:34 +08:00
parent fe51c65b32
commit 71d739ab44
1 changed files with 2 additions and 0 deletions

View File

@ -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不能为空");