From 778889b13087125e0eacfa5f0d69e8bb95f82916 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期二, 05 九月 2023 17:32:43 +0800 Subject: [PATCH] L撤撤单策略修改 --- code_attribute/gpcode_manager.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code_attribute/gpcode_manager.py b/code_attribute/gpcode_manager.py index 3ddc680..3a8cc06 100644 --- a/code_attribute/gpcode_manager.py +++ b/code_attribute/gpcode_manager.py @@ -173,11 +173,11 @@ hasChanged = False for code in codes: if code not in self.__first_code_limited_up_record_cache: - RedisUtils.sadd_async(self.__get_redis(), "first_code_limited_up_record", code) + RedisUtils.sadd_async(self.__db, "first_code_limited_up_record", code) hasChanged = True self.__first_code_limited_up_record_cache.add(code) if hasChanged: - RedisUtils.expire_async(self.__get_redis(), "first_code_limited_up_record", tool.get_expire()) + RedisUtils.expire_async(self.__db, "first_code_limited_up_record", tool.get_expire()) # 鏄惁娑ㄥ仠杩� def is_limited_up(self, code): -- Gitblit v1.8.0