This commit is contained in:
leo 2023-04-29 11:22:27 +08:00
parent cb7b7415f3
commit eef46c2aa6
1 changed files with 2 additions and 2 deletions

View File

@ -31,8 +31,8 @@ class GameUser extends BaseModel
'channel' => $user['Channel'] ? intval($user['Channel']) : 0, 'channel' => $user['Channel'] ? intval($user['Channel']) : 0,
'promoter' => $user['BeUnderAgentCode'] ? intval($user['BeUnderAgentCode']) : 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 $userinfo;
} }
return []; return [];