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
210a48e5
Commit
210a48e5
authored
Nov 12, 2018
by
zw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化下
parent
abf736bb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
AppChat.php
application/chat/controller/AppChat.php
+2
-1
ChatMsg.php
application/model/ChatMsg.php
+1
-0
No files found.
application/chat/controller/AppChat.php
View file @
210a48e5
...
@@ -558,7 +558,7 @@ class AppChat extends Basic
...
@@ -558,7 +558,7 @@ class AppChat extends Basic
{
{
$params
=
$this
->
params
;
$params
=
$this
->
params
;
/* $params = array(
/* $params = array(
"agent_id" =>
1
"agent_id" =>
5739
);*/
);*/
if
(
empty
(
$params
[
'agent_id'
]))
{
if
(
empty
(
$params
[
'agent_id'
]))
{
return
$this
->
response
(
"101"
,
"请求参数错误"
);
return
$this
->
response
(
"101"
,
"请求参数错误"
);
...
@@ -580,6 +580,7 @@ class AppChat extends Basic
...
@@ -580,6 +580,7 @@ class AppChat extends Basic
}
}
$where
[
"to_id"
]
=
"agent_"
.
$params
[
"agent_id"
];
$where
[
"to_id"
]
=
"agent_"
.
$params
[
"agent_id"
];
$where
[
"is_read"
]
=
0
;
$chatModel
=
new
ChatMsg
();
$chatModel
=
new
ChatMsg
();
$msg_count
=
$chatModel
->
getTotalByToId
(
$where
);
$msg_count
=
$chatModel
->
getTotalByToId
(
$where
);
if
(
$msg_count
>
0
)
{
if
(
$msg_count
>
0
)
{
...
...
application/model/ChatMsg.php
View file @
210a48e5
...
@@ -142,6 +142,7 @@ class ChatMsg extends Model
...
@@ -142,6 +142,7 @@ class ChatMsg extends Model
$data
=
$this
->
db
$data
=
$this
->
db
->
where
(
$params
)
->
where
(
$params
)
->
count
();
->
count
();
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