diff --git a/app/controller/AdminAgentTeam.php b/app/controller/AdminAgentTeam.php index 9e3b178..ff2128c 100644 --- a/app/controller/AdminAgentTeam.php +++ b/app/controller/AdminAgentTeam.php @@ -177,7 +177,7 @@ class AdminAgentTeam extends BaseController 'password|密码' => 'min:6|max:20', 'rebate_ratio|返点占比' => 'float' ])->check($param); - if (empty($param['password']) && is_numeric($param['rebate_ratio'])) { + if (empty($param['password']) && !is_numeric($param['rebate_ratio'])) { throw new ValidateException('请填写修改的密码或返点占比'); }