改进 工单状态变更
This commit is contained in:
parent
69283b0f93
commit
1ef43d601f
@ -142,9 +142,13 @@ public function markAsRead(): bool
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (auth('admin')->check()) {
|
if (auth('admin')->check() && $this->status !== 'replied') {
|
||||||
$this->status = 'read';
|
$this->status = 'read';
|
||||||
} else {
|
} elseif (
|
||||||
|
(auth('api')->check() || auth('sanctum')->check())
|
||||||
|
&&
|
||||||
|
$this->status !== 'user_replied'
|
||||||
|
) {
|
||||||
$this->status = 'user_read';
|
$this->status = 'user_read';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user