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
235b574a
Commit
235b574a
authored
Jun 12, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
f2b9b4f6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
User.php
application/api_broker/controller/User.php
+9
-3
UserValidate.php
application/api_broker/validate/UserValidate.php
+5
-1
No files found.
application/api_broker/controller/User.php
View file @
235b574a
...
...
@@ -854,14 +854,20 @@ class User extends Basic
"page_no" => 1,
"page_size" => 15
);*/
if
(
!
isset
(
$params
[
'user_id'
]))
{
return
$this
->
response
(
"101"
,
"参数不全"
);
$checkResult
=
$this
->
validate
(
$params
,
"UserValidate.followUpLog"
);
if
(
true
!==
$checkResult
)
{
return
$this
->
response
(
"300"
,
$checkResult
);
}
$user_id
=
$params
[
'user_id'
];
$pageNo
=
empty
(
$params
[
'page_no'
])
?
1
:
$params
[
'page_no'
];
$pageSize
=
empty
(
$params
[
'page_size'
])
?
15
:
$params
[
'page_size'
];
$result
=
$this
->
userLogService
->
phoneFollowUp
(
$user_id
,
$this
->
siteId
,
$pageNo
,
$pageSize
);
if
(
$params
[
'entrust_type'
]
==
0
){
$result
=
$this
->
userLogService
->
phoneFollowUp
(
$user_id
,
$this
->
siteId
,
$pageNo
,
$pageSize
);
}
else
{
$result
=
$this
->
userLogService
->
phoneFollowUp
(
$user_id
,
$this
->
siteId
,
$pageNo
,
$pageSize
);
}
if
(
count
(
$result
)
>
0
){
return
$this
->
response
(
"200"
,
"success!"
,
$result
);
...
...
application/api_broker/validate/UserValidate.php
View file @
235b574a
...
...
@@ -14,7 +14,8 @@ class UserValidate extends Validate{
'type'
=>
'require'
,
'agent_id'
=>
'require|number|gt:0'
,
'user_id'
=>
'require|number|gt:0'
,
'id'
=>
'require|number|gt:0'
'id'
=>
'require|number|gt:0'
,
'entrust_type'
=>
'require|number'
,
];
protected
$message
=
[
...
...
@@ -28,10 +29,13 @@ class UserValidate extends Validate{
'id.require'
=>
'id为必填字段'
,
'id.number'
=>
'id只能为数字'
,
'id.gt'
=>
'id必须大于0'
,
'entrust_type.require'
=>
'entrust_type为必填字段'
,
'entrust_type.number'
=>
'entrust_type只能为数字'
,
];
protected
$scene
=
[
'getLastOrNextUserID'
=>
[
'user_id'
,
'agent_id'
,
'type'
],
'getLastOrNextUserIDPhoneFollowPu'
=>
[
'id'
,
'agent_id'
,
'type'
],
'followUpLog'
=>
[
'user_id'
,
'entrust_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