This commit is contained in:
张良(004796)
2024-02-28 14:34:02 +08:00
parent c70ffbb7d6
commit 048794bda0

View File

@@ -112,7 +112,7 @@ public class RoomDataCache {
private final static String SET_STATUS_AGREE = private final static String SET_STATUS_AGREE =
"local status = tonumber(redis.call('hget', KEYS[1], '\"status\"'))\n" + "local status = tonumber(redis.call('hget', KEYS[1], '\"status\"'))\n" +
"local beginTime = redis.call('hget', KEYS[1], '\"beginTime\"')\n" + "local beginTime = redis.call('hget', KEYS[1], '\"beginTime\"')\n" +
"if status ~= 3 or beginTime) then\n" + "if status ~= 3 or beginTime then\n" +
" return 0\n" + " return 0\n" +
"end\n" + "end\n" +
"return redis.call('hmset', KEYS[1], '\"status\"', 7, '\"beginTime\"', ARGV[1])"; "return redis.call('hmset', KEYS[1], '\"status\"', 7, '\"beginTime\"', ARGV[1])";