From fffad26373ab44be16665e30fbf8548bf4884e8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=87=E8=81=94=E7=A7=91=E6=8A=80?= Date: Mon, 28 Sep 2020 11:09:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E6=B3=A8=E5=86=8C=E9=9A=90=E7=A7=81=E9=97=AE=E9=A2=98=EF=BC=8C?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E5=8F=B7=E6=AE=B51[3-9]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/common/library/Auth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/common/library/Auth.php b/application/common/library/Auth.php index caca32e8..7d6f2d43 100644 --- a/application/common/library/Auth.php +++ b/application/common/library/Auth.php @@ -156,7 +156,7 @@ class Auth 'avatar' => '', ]; $params = array_merge($data, [ - 'nickname' => $username, + 'nickname' => preg_match("/^1[3-9]{1}\d{9}$/",$username) ? substr_replace($username,'****',3,4) : $username, 'salt' => Random::alnum(), 'jointime' => $time, 'joinip' => $ip,