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
8c84ad38
Commit
8c84ad38
authored
Jul 12, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
68a5a037
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
AppChat.php
application/chat/controller/AppChat.php
+2
-2
ChatService.php
application/chat/service/ChatService.php
+1
-1
No files found.
application/chat/controller/AppChat.php
View file @
8c84ad38
...
@@ -149,7 +149,7 @@ class AppChat extends Basic
...
@@ -149,7 +149,7 @@ class AppChat extends Basic
{
{
$params
=
$this
->
params
;
$params
=
$this
->
params
;
$params
=
array
(
/*
$params = array(
'user_name' => 'cesh',
'user_name' => 'cesh',
'msg_content' => 'ceshi666',
'msg_content' => 'ceshi666',
'target_type' => 'users',
'target_type' => 'users',
...
@@ -158,7 +158,7 @@ class AppChat extends Basic
...
@@ -158,7 +158,7 @@ class AppChat extends Basic
'type' => '1',
'type' => '1',
'is_user' => '0',
'is_user' => '0',
'target' => 'agent_5740',
'target' => 'agent_5740',
);
);
*/
if
(
!
isset
(
$params
[
'target_type'
])
||
!
isset
(
$params
[
'target'
])
||
!
isset
(
$params
[
'type'
])
if
(
!
isset
(
$params
[
'target_type'
])
||
!
isset
(
$params
[
'target'
])
||
!
isset
(
$params
[
'type'
])
||
!
isset
(
$params
[
'msg_content'
])
||
!
isset
(
$params
[
'source'
])
||
!
isset
(
$params
[
'is_user'
])
||
!
isset
(
$params
[
'from'
]))
{
||
!
isset
(
$params
[
'msg_content'
])
||
!
isset
(
$params
[
'source'
])
||
!
isset
(
$params
[
'is_user'
])
||
!
isset
(
$params
[
'from'
]))
{
return
$this
->
response
(
ErrorCodeConst
::
ERROR_CODE_PARAM_NOT_EXIST
,
"请求参数错误"
);
return
$this
->
response
(
ErrorCodeConst
::
ERROR_CODE_PARAM_NOT_EXIST
,
"请求参数错误"
);
...
...
application/chat/service/ChatService.php
View file @
8c84ad38
...
@@ -394,7 +394,7 @@ class ChatService
...
@@ -394,7 +394,7 @@ class ChatService
c.name as agent_name,c.img,d.user_name,d.user_phone,d.user_nick,d.user_pic,d.other_pic"
;
c.name as agent_name,c.img,d.user_name,d.user_phone,d.user_nick,d.user_pic,d.other_pic"
;
$relationList
=
$chatRelationModel
->
getChatRelationInfo
(
$params
,
$field
);
$relationList
=
$chatRelationModel
->
getChatRelationInfo
(
$params
,
$field
);
dump
(
$relationList
);
//
dump($relationList);
$fields
=
"a.id,a.from_id,a.to_id,b.body,a.created_at"
;
$fields
=
"a.id,a.from_id,a.to_id,b.body,a.created_at"
;
$msgModel
=
new
ChatMsg
();
$msgModel
=
new
ChatMsg
();
foreach
(
$relationList
as
$key
=>
$item
)
{
foreach
(
$relationList
as
$key
=>
$item
)
{
...
...
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