优化后台管理端查看手机号

This commit is contained in:
evoxwht 2023-06-12 10:32:46 +08:00
parent 6acb474446
commit 3425e2bff8
2 changed files with 5 additions and 5 deletions

View File

@ -217,8 +217,8 @@ class PublicController
/**
* 图片上传
* @param Request $request
* @param SystemAttachmentServices $services
* @return mixed
* @throws \Psr\SimpleCache\InvalidArgumentException
*/
public function upload_image(Request $request, SystemAttachmentServices $services)
{

View File

@ -69,10 +69,10 @@ class User extends BaseModel
return app('request')->ip();
}
protected function getPhoneAttr($value)
{
return $value && app('request')->hasMacro('adminInfo') && app('request')->adminInfo()['level'] != 0 ? substr_replace($value, '****', 3, 4) : $value;
}
// protected function getPhoneAttr($value)
// {
// return $value && app('request')->hasMacro('adminInfo') && app('request')->adminInfo()['level'] != 0 ? substr_replace($value, '****', 3, 4) : $value;
// }
/**
* 链接会员登陆设置表