Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
ic_welfare_api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a0def9d5
authored
Sep 04, 2019
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
对手机号码进行星号处理
parent
4df53760
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
app/Services/InviteService.php
app/Services/InviteService.php
View file @
a0def9d5
...
...
@@ -20,9 +20,11 @@ class InviteService extends BaseService
$users
=
$this
->
getUsersFromRedis
(
$ids
);
foreach
(
$users
as
$user
)
{
$userNames
[
$user
[
'user_id'
]]
=
isset
(
$user
[
'company_name'
])
?:
$user
[
'mobile'
];
$mobiles
[
$user
[
'user_id'
]]
=
$user
[
'mobile'
];
}
$result
[
'data'
]
=
array_map
(
function
(
$value
)
use
(
$userNames
)
{
$result
[
'data'
]
=
array_map
(
function
(
$value
)
use
(
$userNames
,
$mobiles
)
{
$value
[
'invited_user_name'
]
=
$userNames
[
$value
[
'invited_user_id'
]];
$value
[
'invited_user_mobile'
]
=
$mobiles
[
$value
[
'invited_user_id'
]];
return
$value
;
...
...
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