|
|
@ -177,7 +177,7 @@ class AdminAgentTeam extends BaseController |
|
|
'password|密码' => 'min:6|max:20', |
|
|
'password|密码' => 'min:6|max:20', |
|
|
'rebate_ratio|返点占比' => 'float' |
|
|
'rebate_ratio|返点占比' => 'float' |
|
|
])->check($param); |
|
|
])->check($param); |
|
|
if (empty($param['password']) && !is_float($param['rebate_ratio'])) { |
|
|
if (empty($param['password']) && (empty($param['rebate_ratio']) && $param['rebate_ratio'] !== 0)) { |
|
|
throw new ValidateException('请填写修改的密码或返点占比'); |
|
|
throw new ValidateException('请填写修改的密码或返点占比'); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|