Selaa lähdekoodia

用户tkenid的规则修改

lizhen_gitee 1 vuosi sitten
vanhempi
commit
5238c1a64e
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  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