batchKey: user_seed_bonus not expires

This commit is contained in:
xiaomlove
2024-10-04 00:42:27 +08:00
parent f2cd69f718
commit 80132e9cea
2 changed files with 5 additions and 2 deletions

View File

@@ -169,7 +169,10 @@ for k, v in pairs(batchList) do
local isBatchKeyNew = false
if batchKey == false then
batchKey = v .. ":" .. ARGV[4]
redis.call("SET", v, batchKey, "EX", ARGV[5])
redis.call("SET", v, batchKey)
if (k > 1) then
redis.call("EXPIRE", v, ARGV[5])
end
isBatchKeyNew = true
end
local hashKey

View File

@@ -1,6 +1,6 @@
<?php
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.8.14');
defined('RELEASE_DATE') || define('RELEASE_DATE', '2024-09-24');
defined('RELEASE_DATE') || define('RELEASE_DATE', '2024-10-04');
defined('IN_TRACKER') || define('IN_TRACKER', false);
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");