From fe957489ca1c12ce9ce6a86d4f92df3d8a2d3980 Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq,com> Date: Wed, 27 Sep 2023 18:26:27 +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=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/AdminAgentTeam.php | 2 +- app/validate/Agent.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controller/AdminAgentTeam.php b/app/controller/AdminAgentTeam.php index ae774e4..95c83e5 100644 --- a/app/controller/AdminAgentTeam.php +++ b/app/controller/AdminAgentTeam.php @@ -175,7 +175,7 @@ class AdminAgentTeam extends BaseController validate()->rule([ 'aid|代理id' => 'require|number', 'password|密码' => 'min:6|max:20', - 'rebate_ratio|返点占比' => 'float|egt:1' + 'rebate_ratio|返点占比' => 'float' ])->check($param); if (empty($param['password']) && empty($param['rebate_ratio'])) { throw new ValidateException('请填写修改的密码或返点占比'); diff --git a/app/validate/Agent.php b/app/validate/Agent.php index e48fb89..1131677 100644 --- a/app/validate/Agent.php +++ b/app/validate/Agent.php @@ -20,7 +20,7 @@ class Agent extends Validate 'repassword|确认密码' => 'require|confirm:password', 'aid|代理id' => 'require|number', 'phone|手机号' => 'require|mobile', - 'rebate_ratio|返点占比' => 'float|egt:1' + 'rebate_ratio|返点占比' => 'float' ]; /**