Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
8fc109b8
Commit
8fc109b8
authored
Jul 02, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
ef8ce24f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
5 deletions
+14
-5
Agent.php
application/index/controller/Agent.php
+1
-1
VerifyValidate.php
application/index/validate/VerifyValidate.php
+13
-4
No files found.
application/index/controller/Agent.php
View file @
8fc109b8
...
...
@@ -149,7 +149,7 @@ class Agent extends Basic
"operator_id" => 12,//操作人id 登陆后台的经纪人id
"is_forbidden" => 0,//0正常 1禁止
);*/
$checkResult
=
$this
->
validate
(
$params
,
"
Performance
Validate.verifyIsForbidden"
);
$checkResult
=
$this
->
validate
(
$params
,
"
Verify
Validate.verifyIsForbidden"
);
if
(
true
!==
$checkResult
)
{
return
$this
->
response
(
"101"
,
$checkResult
);
}
...
...
application/index/validate/VerifyValidate.php
View file @
8fc109b8
...
...
@@ -13,18 +13,26 @@ class VerifyValidate extends Validate
{
protected
$rule
=
[
'id'
=>
'require|number'
,
// 'wx_open_id' => 'require|length:10,50
',
// 'source' => 'require|number
',
// 'user_id' => 'require|number|gt:0
',
'phone'
=>
'require|number'
,
'device_id'
=>
'require
'
,
'is_forbidden'
=>
'require|in:0,1
'
,
'operator_id'
=>
'require|number
'
,
];
protected
$message
=
[
'id.require'
=>
'id不能为空'
,
'phone.require'
=>
'手机号不能为空'
,
'phone.number'
=>
'手机号输入错误'
,
'device_id.require'
=>
'设备号获取失败,请联系管理员'
,
'is_forbidden.require'
=>
'是否绑定字段必填'
,
'is_forbidden.in'
=>
'是否绑定字段值只能为0或1'
,
'operator_id.require'
=>
'操作人为必填字段'
,
'operator_id.number'
=>
'操作人编号只能为数字'
,
];
protected
$scene
=
[
'select'
=>
[
'id'
],
'verifyIsForbidden'
=>
[
'phone'
,
'device_id'
,
'is_forbidden'
,
'operator_id'
],
];
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment