Explorar o código

用户tkenid的规则修改

lizhen_gitee hai 1 ano
pai
achega
5238c1a64e
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  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