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
08d8aa9c
Commit
08d8aa9c
authored
Jul 10, 2019
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
1c6d856c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
ChatService.php
application/chat/service/ChatService.php
+11
-9
No files found.
application/chat/service/ChatService.php
View file @
08d8aa9c
...
...
@@ -570,17 +570,19 @@ class ChatService
$result
[
$key
][
"user_id"
]
=
$item
[
"user_id"
];
//关系id
//拆分查询
$info
=
$redis_service
->
agentCache
(
$item
[
"user_id"
]);
if
(
$item
[
"type"
]
==
1
)
{
//经纪人
$result
[
$key
][
"agent_name"
]
=
$info
[
"name"
];
$result
[
$key
][
"img"
]
=
$info
[
"img"
];
$result
[
$key
][
"phone"
]
=
$info
[
"phone"
];
$agent_info
=
$redis_service
->
agentCache
(
$item
[
"user_id"
]);
$result
[
$key
][
"agent_name"
]
=
$agent_info
[
"name"
];
$result
[
$key
][
"img"
]
=
$agent_info
[
"img"
];
$result
[
$key
][
"phone"
]
=
$agent_info
[
"phone"
];
}
elseif
(
$item
[
"type"
]
==
2
)
{
//用户
$result
[
$key
][
"user_name"
]
=
$info
[
"user_name"
];
$result
[
$key
][
"user_phone"
]
=
$info
[
"user_phone"
];
$result
[
$key
][
"user_nick"
]
=
$info
[
"user_nick"
];
$result
[
$key
][
"user_pic"
]
=
$info
[
"user_pic"
];
$result
[
$key
][
"other_pic"
]
=
$info
[
"other_pic"
];
$user_info
=
$redis_service
->
userCache
(
$item
[
"user_id"
]);
$result
[
$key
][
"user_name"
]
=
$user_info
[
"user_name"
];
$result
[
$key
][
"user_phone"
]
=
$user_info
[
"user_phone"
];
$result
[
$key
][
"user_nick"
]
=
$user_info
[
"user_nick"
];
$result
[
$key
][
"user_pic"
]
=
$user_info
[
"user_pic"
];
$result
[
$key
][
"other_pic"
]
=
$user_info
[
"other_pic"
];
}
//对方的only_id
if
(
$item
[
"from_id"
]
==
$target
)
{
...
...
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