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
51e783d2
Commit
51e783d2
authored
Aug 22, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
8178443d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
1 deletion
+32
-1
User.php
application/api_broker/controller/User.php
+1
-1
UserGetLastOrNextUserIdPhoneFollowPuValidate.php
...validate/UserGetLastOrNextUserIdPhoneFollowPuValidate.php
+31
-0
No files found.
application/api_broker/controller/User.php
View file @
51e783d2
...
...
@@ -503,7 +503,7 @@ class User extends Basic
header
(
'Access-Control-Allow-Origin:*'
);
$params
=
$this
->
params
;
// $checkResult = $this->validate($params, "UserGetLastOrNextUserIdValidate.verifyStatus");
// $checkResult = $this->validate($params, "UserGetLastOrNextUserId
PhoneFollowPu
Validate.verifyStatus");
// if (true !== $checkResult) {
// return $this->response("300", $checkResult);
// }
...
...
application/api_broker/validate/UserGetLastOrNextUserIdPhoneFollowPuValidate.php
0 → 100644
View file @
51e783d2
<?php
namespace
app\api_broker\validate
;
use
think\Validate
;
/**
* Created by PhpStorm.
* User: zhuwei
* Date: 2018/8/7
* Time: 13:54:12
*/
class
UserGetLastOrNextUserIdValidate
extends
Validate
{
protected
$rule
=
[
'type'
=>
'require'
,
'agent_id'
=>
'require|number|gt:0'
,
'id'
=>
'require|number|gt:0'
];
protected
$message
=
[
'type.require'
=>
'网络异常!错误代码:uv1'
,
//type为必填字段
'agent_id.require'
=>
'agent_id为必填字段'
,
//agent_id为必填字段
'agent_id.number'
=>
'网络异常!错误代码:uv4'
,
//agent_id只能为数字
'agent_id.gt'
=>
'网络异常!错误代码:uv5'
,
//agent_id必须大于0
'id.require'
=>
'id为必填字段'
,
//user_id为必填字段
'id.number'
=>
'网络异常!错误代码:uv7'
,
//user_id只能为数字
'id.gt'
=>
'网络异常!错误代码:uv8'
,
//user_id必须大于0
];
protected
$scene
=
[
'add_phone_follow_up_verify'
=>
[
'id'
,
'agent_id'
,
'type'
],
];
}
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