diff --git a/web/app/controllers/subdomain/blog/blog.php b/web/app/controllers/subdomain/blog/blog.php index 88c3ffe..5150047 100644 --- a/web/app/controllers/subdomain/blog/blog.php +++ b/web/app/controllers/subdomain/blog/blog.php @@ -25,7 +25,7 @@ $comment_form->addVTextArea( '内容', '', function ($comment) { - if (Auth::check()) { + if (!Auth::check()) { return '请先登录'; } if (!$comment) {