From 8595dc22aa9dde6aba6d0f8cdcf1656a8a59513b Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期三, 02 八月 2023 18:05:10 +0800
Subject: [PATCH] redis封装

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

diff --git a/code_attribute/big_money_num_manager.py b/code_attribute/big_money_num_manager.py
index 39c8af4..83858f3 100644
--- a/code_attribute/big_money_num_manager.py
+++ b/code_attribute/big_money_num_manager.py
@@ -20,7 +20,7 @@
 
 def add_num(code, num):
     redis = __redisManager.getRedis()
-    redis.incrby("big_money-{}".format(code), num)
+    RedisUtils.incrby(redis,"big_money-{}".format(code), num)
 
 
 # 璁剧疆杩囨湡鏃堕棿
@@ -31,12 +31,12 @@
 
 def reset(code):
     redis = __redisManager.getRedis()
-    redis.set("big_money-{}".format(code), 0)
+    RedisUtils.set(redis,"big_money-{}".format(code), 0)
 
 
 def get_num(code):
     redis = __redisManager.getRedis()
-    num = redis.get("big_money-{}".format(code))
+    num = RedisUtils.get(redis, "big_money-{}".format(code))
     if num is None:
         return 0
     return round(int(num) / 1000 / 4)

--
Gitblit v1.8.0