|
|
|
@ -118,9 +118,9 @@ class AgentController extends AdminController |
|
|
|
// $form->appsecret = $form->appsecret ?: '暂未填写';
|
|
|
|
// $form->mchid = $form->appid ?: '暂未填写';
|
|
|
|
// $form->mchkey = $form->appid ?: '暂未填写';
|
|
|
|
$form->type = in_array($form->type, UserStatus::array()) ? $form->type : AgentType::OPERATOR; |
|
|
|
$form->type = in_array($form->type, AgentType::key()) ? $form->type : AgentType::OPERATOR; |
|
|
|
})->saved(function (Form $form) { |
|
|
|
return $form->response()->success('操作成功,请等待管理员审核'); |
|
|
|
return $form->response()->success('操作成功,请等待管理员审核')->refresh(); |
|
|
|
})->deleting(function (Form $form) { |
|
|
|
return $form->response()->error('服务器出错了~~'); |
|
|
|
}); |
|
|
|
|