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
562fe839
Commit
562fe839
authored
Sep 03, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
7407b86c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
AppChat.php
application/chat/controller/AppChat.php
+3
-2
No files found.
application/chat/controller/AppChat.php
View file @
562fe839
...
...
@@ -428,10 +428,11 @@ class AppChat extends Basic
$result
=
$user
->
getAgentByUserId
(
$field
,
$params_
);
if
(
count
(
$result
)
>
0
)
{
$result_
[
"id"
]
=
$result
[
0
][
"id"
];
$result_
[
"agent_id"
]
=
'agent_'
.
$result
[
0
][
"id"
];
$result_
[
"user_name"
]
=
$result
[
0
][
"user_name"
];
$result_
[
"user_nick"
]
=
$result
[
0
][
"user_nick"
];
$result_
[
"
img
"
]
=
!
empty
(
$result
[
0
][
"user_pic"
])
?
HEADERIMGURL
.
$result
[
0
][
"user_pic"
]
:
$result
[
0
][
"other_pic"
];
$result_
[
"user_phone"
]
=
preg_replace
(
'/(\d{3})\d{4}(\d{4})/'
,
'$1****$2'
,
$result
[
0
][
"user_phone"
])
;
$result_
[
"
user_pic
"
]
=
!
empty
(
$result
[
0
][
"user_pic"
])
?
HEADERIMGURL
.
$result
[
0
][
"user_pic"
]
:
$result
[
0
][
"other_pic"
];
$result_
[
"user_phone"
]
=
$result
[
0
][
"user_phone"
]
;
return
$this
->
response
(
"200"
,
"success!"
,
$result_
);
}
else
{
...
...
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