wupengfei 3 éve
szülő
commit
72e385036e

+ 1 - 1
addons/shopro/controller/User.php

@@ -225,7 +225,7 @@ class User extends Base
         $ret = $this->auth->register($username, $password, $email, $mobile, $extend);
         if ($ret) {
             $user = $this->auth->getUser();
-            $user->nickname = $user->nickname . $user->id;
+            //$user->nickname = $user->nickname . $user->id;
             $verification = $user->verification;
             $verification->mobile = 1;
             $user->verification = $verification;

+ 1 - 1
application/common/library/Auth.php

@@ -164,7 +164,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,

BIN
public/h5/static/font/OPPOSANS-M-subfont.ttf


BIN
public/h5/static/fonts/OPPOSANS-M-subfont.6d4230b2.ttf