diff --git a/application/common/model/GameUser.php b/application/common/model/GameUser.php index 14bc643..1cc4533 100644 --- a/application/common/model/GameUser.php +++ b/application/common/model/GameUser.php @@ -31,8 +31,8 @@ class GameUser extends BaseModel 'channel' => $user['Channel'] ? intval($user['Channel']) : 0, 'promoter' => $user['BeUnderAgentCode'] ? intval($user['BeUnderAgentCode']) : 0, ]; - $second = rand(600, 18000); - Cache::set('server_' . $snid, $userinfo, 86400 * 3 + $second); + + Cache::set('server_' . $snid, $userinfo, 300); return $userinfo; } return [];