|
@@ -351,7 +351,7 @@ class User extends Api
|
|
|
|
|
|
public function getUserinfo(){
|
|
|
$userinfo = $this->auth->getUserinfo();
|
|
|
- $userinfo['phone_r'] = preg_match("/^1[3-9]{1}\d{9}$/", $username) ? substr_replace($username, '****', 3, 4);
|
|
|
- return json($this->auth->getUserinfo());
|
|
|
+ $userinfo['phone_r'] = substr_replace($userinfo['mobile'], '****', 3, 4);
|
|
|
+ return json($userinfo);
|
|
|
}
|
|
|
}
|