改进 标记为 已读
This commit is contained in:
parent
3f9841559d
commit
0ae44a85cb
@ -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';
|
||||||
|
Loading…
Reference in New Issue
Block a user