From 32f47c162b6638a186135ae1267c870233ec21f9 Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期三, 02 八月 2023 16:59:36 +0800
Subject: [PATCH] redis封装

---
 l2/code_price_manager.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/l2/code_price_manager.py b/l2/code_price_manager.py
index f4028e7..a5b1071 100644
--- a/l2/code_price_manager.py
+++ b/l2/code_price_manager.py
@@ -26,7 +26,7 @@
 
     @classmethod
     def __get_buy1_price_info(cls, code):
-        data = cls.__get_redis().get(f"buy1_price_limit_up_info-{code}")
+        data = RedisUtils.get(cls.__get_redis(), f"buy1_price_limit_up_info-{code}")
         if not data:
             return None, None
         data = json.loads(data)
@@ -39,7 +39,7 @@
 
     @classmethod
     def __get_buy1_price(cls, code):
-        return cls.__get_redis().get(f"buy1_price-{code}")
+        return RedisUtils.get(cls.__get_redis(), f"buy1_price-{code}")
 
     # 璁剧疆鐐告澘鍚庣殑鏈�浣庝环
     @classmethod
@@ -48,7 +48,7 @@
 
     @classmethod
     def __get_open_limit_up_lowest_price(cls, code):
-        return cls.__get_redis().get(f"open_limit_up_lowest_price-{code}")
+        return RedisUtils.get(cls.__get_redis(), f"open_limit_up_lowest_price-{code}")
 
     @classmethod
     def set_open_limit_up_lowest_price(cls, code, price):

--
Gitblit v1.8.0