From 939c5bfb0943cea1b373e6ca1977ed6b7195d2e9 Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期一, 04 九月 2023 10:17:10 +0800
Subject: [PATCH] 交易回调异常保护

---
 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