|
|
|
@ -43,7 +43,7 @@ class AuditSupplier extends RowAction |
|
|
|
//插入权限表
|
|
|
|
if ($user->status == UserStatus::NORMAL) { |
|
|
|
DB::table(config('admin-supplier.database.role_users_table')) |
|
|
|
->insertOrIgnore(['role_id' => 1, 'user_id' => $this->getKey()]); |
|
|
|
->insertOrIgnore(['role_id' => 2, 'user_id' => $this->getKey()]); |
|
|
|
} |
|
|
|
|
|
|
|
return $this->response()->success("审核成功")->refresh(); |
|
|
|
|