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
d61f6c6d
Commit
d61f6c6d
authored
Sep 03, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取推送记录
parent
276ad11d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
ChatUserExt.php
application/model/ChatUserExt.php
+3
-1
No files found.
application/model/ChatUserExt.php
View file @
d61f6c6d
...
@@ -63,7 +63,7 @@ class ChatUserExt extends BaseModel
...
@@ -63,7 +63,7 @@ class ChatUserExt extends BaseModel
* @throws \think\Exception
* @throws \think\Exception
* @throws \think\exception\DbException
* @throws \think\exception\DbException
*/
*/
public
function
getChatUserExtByUserId
(
$params
,
$field
)
public
function
getChatUserExtByUserId
(
$params
,
$field
,
$limit
=
1
)
{
{
$where_
=
[];
$where_
=
[];
if
(
isset
(
$params
[
'only_id'
]))
{
if
(
isset
(
$params
[
'only_id'
]))
{
...
@@ -79,6 +79,8 @@ class ChatUserExt extends BaseModel
...
@@ -79,6 +79,8 @@ class ChatUserExt extends BaseModel
->
alias
(
"a"
)
->
alias
(
"a"
)
->
join
(
"chat_user b"
,
"a.ext_id = b.id"
,
"right"
)
->
join
(
"chat_user b"
,
"a.ext_id = b.id"
,
"right"
)
->
where
(
$where_
)
->
where
(
$where_
)
->
order
(
'update_time DESC'
)
->
limit
(
$limit
)
->
select
();
->
select
();
//echo $this->getLastSql();
//echo $this->getLastSql();
return
$data
;
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