lizhen_gitee 1 год назад
Родитель
Сommit
5238c1a64e
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      application/common/library/Auth.php

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

@@ -250,7 +250,7 @@ class Auth
             $user = User::create($params, true);
 
             $this->_user = User::get($user->id);
-            $this->_user->username = 'u' . (10000 + $user->id);
+            $this->_user->username = 100000 + $user->id;
             $this->_user->save();
 
             //设置Token
@@ -325,7 +325,7 @@ class Auth
             $user = User::create($params, true);
 
             $this->_user = User::get($user->id);
-            $this->_user->username = 'u' . (10000 + $user->id);
+            $this->_user->username = 100000 + $user->id;
             $this->_user->save();
 
             //设置Token
@@ -400,7 +400,7 @@ class Auth
             $user = User::create($params, true);
 
             $this->_user = User::get($user->id);
-            $this->_user->username = 'u' . (10000 + $user->id);
+            $this->_user->username = 100000 + $user->id;
             $this->_user->save();
 
             //设置Token