修复 管理员回复后工单状态不改变的问题
This commit is contained in:
parent
56dffd297f
commit
9e1b85697e
@ -46,6 +46,8 @@ protected static function boot()
|
||||
// change work order status
|
||||
if (auth('admin')->check()) {
|
||||
$model->role = 'admin';
|
||||
$model->workOrder->status = 'replied';
|
||||
|
||||
} else if (auth('sanctum')->check()) {
|
||||
$model->user_id = auth('sanctum')->id();
|
||||
$model->role = 'user';
|
||||
|
Loading…
Reference in New Issue
Block a user