From d1530f7611b7000f24b6dd1051a4d7e929b6a4c5 Mon Sep 17 00:00:00 2001 From: xiaomlove Date: Wed, 27 Mar 2024 02:19:46 +0800 Subject: [PATCH] user seed bonus batch key not expires --- app/Repositories/CleanupRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Repositories/CleanupRepository.php b/app/Repositories/CleanupRepository.php index 9923a6a70..568e66fa0 100644 --- a/app/Repositories/CleanupRepository.php +++ b/app/Repositories/CleanupRepository.php @@ -183,7 +183,7 @@ private static function getAddRecordLuaScript(): string hashKey = ARGV[3] end redis.call("HSET", batchKey, hashKey, ARGV[6]) - if isBatchKeyNew then + if (isBatchKeyNew and k > 1) then redis.call("EXPIRE", batchKey, ARGV[5]) end end