From 71b396dcbb2671acfb9c1421c571fa9f8ede4794 Mon Sep 17 00:00:00 2001 From: cody <648753004@qq.com> Date: Wed, 3 Sep 2025 11:02:07 +0800 Subject: [PATCH] update --- app/Models/User.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app/Models/User.php b/app/Models/User.php index a73486a..c0f9717 100755 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -91,14 +91,14 @@ class User extends Authenticatable implements Auditable return $this->username; } - public function getMobileAttribute($value) - { - // 如果url中包含admin字符串,则所有的手机号显示中间4位星号代替 - if (strpos(request()->url(), 'admin') !== false && env('APP_ENV') == 'local') { - return substr_replace($value, '****', 3, 4); - } - return $value; - } +// public function getMobileAttribute($value) +// { +// // 如果url中包含admin字符串,则所有的手机号显示中间4位星号代替 +// if (strpos(request()->url(), 'admin') !== false && env('APP_ENV') == 'local') { +// return substr_replace($value, '****', 3, 4); +// } +// return $value; +// } public function getAppointmentTotalAttribute($value) {