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
42cc00c2
Commit
42cc00c2
authored
Jul 20, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
444a76c4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
9 deletions
+2
-9
AppChat.php
application/chat/controller/AppChat.php
+1
-1
ChatService.php
application/chat/service/ChatService.php
+1
-8
No files found.
application/chat/controller/AppChat.php
View file @
42cc00c2
...
...
@@ -181,7 +181,7 @@ class AppChat extends Basic
if
(
$result
)
{
return
$this
->
response
(
"200"
,
""
,
[
"msg"
=>
"消息发送成功"
]);
}
else
{
return
$this
->
response
(
"101"
,
""
,
[
"msg"
=>
"消息
内容错误
"
]);
return
$this
->
response
(
"101"
,
""
,
[
"msg"
=>
"消息
发送失败
"
]);
}
}
...
...
application/chat/service/ChatService.php
View file @
42cc00c2
...
...
@@ -227,14 +227,7 @@ class ChatService
$user_id
=
empty
(
$user_arr
[
'user_id'
])
?
0
:
$user_arr
[
'user_id'
];
}
else
{
$where
[
'type'
]
=
$item
[
"type"
];
}
if
(
$item
[
'only_id'
]
==
$target
&&
$item
[
'type'
]
==
1
)
{
$user_type
=
1
;
}
if
(
$item
[
'only_id'
]
==
$target
&&
$item
[
'type'
]
==
2
)
{
$user_type
=
2
;
$user_type
=
$item
[
"type"
];
}
}
$info
=
$userExt
->
getChatUserExtByUserId
(
$where
,
'a.id,a.ext_id,a.device_id,a.push_id,b.user_id'
);
...
...
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