master
cody 3 months ago
parent 71b396dcbb
commit 80cb43b1e7

@ -91,14 +91,14 @@ class User extends Authenticatable implements Auditable
return $this->username; return $this->username;
} }
// public function getMobileAttribute($value) public function getMobileAttribute($value)
// { {
// // 如果url中包含admin字符串则所有的手机号显示中间4位星号代替 // 如果url中包含admin字符串则所有的手机号显示中间4位星号代替
// if (strpos(request()->url(), 'admin') !== false && env('APP_ENV') == 'local') { if (strpos(request()->url(), 'admin') !== false && env('APP_ENV') == 'local') {
// return substr_replace($value, '****', 3, 4); return substr_replace($value, '****', 3, 4);
// } }
// return $value; return $value;
// } }
public function getAppointmentTotalAttribute($value) public function getAppointmentTotalAttribute($value)
{ {

Loading…
Cancel
Save