From f2472e028108f59765719408ec1a9355ed2523cc Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq,com> Date: Wed, 27 Sep 2023 18:55:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E9=99=90=E5=88=B6=E8=BF=94=E7=82=B9?= =?UTF-8?q?=E5=A4=9A=E5=B0=9171?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/AdminAgentTeam.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controller/AdminAgentTeam.php b/app/controller/AdminAgentTeam.php index f3d6650..8dfb1a9 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']) && strlen($param['rebate_ratio']) == 0) { + if (empty($param['password']) && strlen($param['rebate_ratio']) <= 0) { throw new ValidateException('请填写修改的密码或返点占比'); } @@ -198,7 +198,7 @@ class AdminAgentTeam extends BaseController Event::trigger(AgentPasswordChange::class,$event); } # 保存返点占比 - if (strlen($param['rebate_ratio']) != 0) { + if (strlen($param['rebate_ratio']) > 0) { $rebate_ratio = $param['rebate_ratio'] ?? 0; AgentInfo::updateRebateRatio($param['aid'],$rebate_ratio); }