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
cab447ba
Commit
cab447ba
authored
Jul 17, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
a094c9f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
ChatMsg.php
application/model/ChatMsg.php
+5
-5
No files found.
application/model/ChatMsg.php
View file @
cab447ba
...
...
@@ -83,15 +83,15 @@ class ChatMsg extends Model
if
(
isset
(
$params
[
"from"
]))
{
$where_
[
"a.from_id"
]
=
$params
[
"from"
];
$where_or
[
"a.to_id"
]
=
$params
[
"from"
];
//
$where_or["a.to_id"] = $params["from"];
}
if
(
isset
(
$params
[
"target"
]))
{
$where_
[
"a.to_id"
]
=
$params
[
"target"
];
$where_or
[
"a.from_id"
]
=
$params
[
"target"
];
//
$where_or["a.from_id"] = $params["target"];
}
if
(
isset
(
$params
[
"id"
]))
{
$where_
[
"a.id"
]
=
$params
[
"id"
];
$where_or
[
"a.id"
]
=
$params
[
"id"
];
//
$where_or["a.id"] = $params["id"];
}
$where_
[
"a.is_del"
]
=
0
;
...
...
@@ -99,9 +99,9 @@ class ChatMsg extends Model
->
alias
(
"a"
)
->
join
(
'chat_msg_ext b'
,
'a.id = b.msg_id'
,
'LEFT'
)
->
where
(
$where_
)
->
whereOr
(
function
(
$query
)
use
(
$where_or
)
{
/*
->whereOr(function ($query) use ($where_or) {
$query->where($where_or);
})
})
*/
->
order
(
"a.created_at desc"
)
->
count
();
//echo $this->getLastSql();
...
...
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