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
+4 -1
View File
@@ -169,7 +169,10 @@ for k, v in pairs(batchList) do
local isBatchKeyNew = false local isBatchKeyNew = false
if batchKey == false then if batchKey == false then
batchKey = v .. ":" .. ARGV[4] 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 isBatchKeyNew = true
end end
local hashKey local hashKey
+1 -1
View File
@@ -1,6 +1,6 @@
<?php <?php
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.8.14'); 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('IN_TRACKER') || define('IN_TRACKER', false);
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP"); defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org"); defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");