浏览代码

用户tkenid的规则修改

lizhen_gitee 1 年之前
父节点
当前提交
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