改进 标记为 已读

This commit is contained in:
iVampireSP.com 2023-02-02 20:32:49 +08:00
parent 3f9841559d
commit 0ae44a85cb
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -152,7 +152,7 @@ public function markAsRead(): bool
return false; return false;
} }
if (auth('admin')) { if (auth('admin')->check()) {
$this->status = 'read'; $this->status = 'read';
} else { } else {
$this->status = 'user_read'; $this->status = 'user_read';