From 1f58734aafef037d5409d2e33a60b216c8edc50c Mon Sep 17 00:00:00 2001 From: tpingzhang <635929049@qq.com> Date: Thu, 21 Nov 2019 18:26:19 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E4=BA=92T?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Model/UserModel.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Application/Admin/Model/UserModel.class.php b/Application/Admin/Model/UserModel.class.php index d527caef..8bbb0232 100644 --- a/Application/Admin/Model/UserModel.class.php +++ b/Application/Admin/Model/UserModel.class.php @@ -1098,7 +1098,7 @@ class UserModel extends Model{ $data["last_device_number"] = $user['device_number']; $data["token"] = $this->generateToken($uid,$account,$password); - $userToken = $this->generateToken($uid,$account,$password).rand(1000, 9999); + $userToken = $this->generateToken($uid,$account,$password).uniqid().rand(1000, 9999); $relationGameId = M('game', 'tab_')->where([ 'id' => $game_id ])->getField('relation_game_id');