diff --git a/app/controller/api/user/User.php b/app/controller/api/user/User.php index d20fa37..f449da4 100644 --- a/app/controller/api/user/User.php +++ b/app/controller/api/user/User.php @@ -333,12 +333,16 @@ class User extends BaseController $data = $this->repository->getOneLevelList($uid, $keyword, 'create_time', $page, $limit); $spread = $this->repository->get($user['spread_uid']); if($spread){ - $data['spread'] = array('uid' => $spread['uid'], 'avatar' => $spread['avatar'], + $data['spread'] = array('uid' => $spread['uid'], 'avatar' => $spread['avatar'], 'nickname' => $spread['nickname'], 'phone' => $spread['phone']); }else{ $data['spread'] = null; } + foreach ($data['list'] as &$item){ + $item['phone'] = substr($item['phone'], 0, 3).'****'.substr($item['phone'], -4); + } + return app('json')->success($data); } diff --git a/public/system.html b/public/system.html index 42d2fdf..5013f04 100644 --- a/public/system.html +++ b/public/system.html @@ -1,3 +1,3 @@ -加载中...
\ No newline at end of file