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
a783a75a
Commit
a783a75a
authored
Jun 19, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询好友邀请记录-后期加分页
parent
01fd0556
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
1 deletion
+22
-1
Client.php
application/api_broker/controller/Client.php
+1
-1
Users.php
application/model/Users.php
+21
-0
No files found.
application/api_broker/controller/Client.php
View file @
a783a75a
...
...
@@ -376,7 +376,7 @@ class Client extends Basic
$where
[
'referrer_id'
]
=
$this
->
agentId
;
$where
[
'referrer_source'
]
=
20
;
$fields
=
'user_nick,user_phone,user_pic,other_pic,create_time'
;
$data
[
'data'
]
=
$this
->
user
->
getUser
ByWhere
(
$pageNo
,
$pageSize
,
$where
,
$fields
);
$data
[
'data'
]
=
$this
->
user
->
getUser
ForInviteList
(
$pageNo
,
$pageSize
,
$where
,
$fields
);
foreach
(
$data
[
'data'
]
as
$k
=>
$v
)
{
$data
[
'data'
][
$k
][
'user_pic'
]
=
!
empty
(
$v
[
'user_pic'
])
?
HEADERIMGURL
.
$v
[
'user_pic'
]
:
$v
[
'other_pic'
]
;
...
...
application/model/Users.php
View file @
a783a75a
...
...
@@ -51,6 +51,27 @@ class Users extends Model
return
$data
;
}
/**
* 查询好友邀请记录-后期加分页
* @param $param
* @param string $fields
* @return false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
getUserForInviteList
(
$pageNo
,
$pageSize
,
$param
,
$fields
=
'id,user_phone'
)
{
$data
=
$this
->
field
(
$fields
)
->
where
(
$param
)
->
order
(
'create_time desc'
)
->
limit
(
$pageSize
)
->
page
(
$pageNo
)
->
select
();
return
$data
;
}
/**
* 查询用户和经纪人
*
...
...
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