Commit a0def9d5 by 杨树贤

对手机号码进行星号处理

parent 4df53760
Showing with 3 additions and 1 deletions
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment