Browse Source

不限制返点多少

master
wanghongjun 3 years ago
parent
commit
fe957489ca
  1. 2
      app/controller/AdminAgentTeam.php
  2. 2
      app/validate/Agent.php

2
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('请填写修改的密码或返点占比');

2
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'
];
/**

Loading…
Cancel
Save