mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 03:57:22 +08:00
add temporary invite use idRedisKey
This commit is contained in:
@@ -59,10 +59,12 @@ while (true) {
|
||||
break;
|
||||
}
|
||||
$idStr = implode(',', $idArr);
|
||||
$idRedisKey = sprintf("temporary_invite:%d", microtime(true));
|
||||
\Nexus\Database\NexusDB::cache_put($idRedisKey, $idStr);
|
||||
if ($isTypeTmpInvite) {
|
||||
$command = sprintf(
|
||||
'invite:tmp %s %s %s',
|
||||
$idStr, $duration, $amount
|
||||
$idRedisKey, $duration, $amount
|
||||
);
|
||||
$output = executeCommand($command, 'string', true);
|
||||
do_log(sprintf('command: %s, output: %s', $command, $output));
|
||||
|
||||
Reference in New Issue
Block a user