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

---
 inited_data.py |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/inited_data.py b/inited_data.py
index ba0be36..f83fd07 100644
--- a/inited_data.py
+++ b/inited_data.py
@@ -36,14 +36,14 @@
 # 璁剧疆璐︽埛淇℃伅
 def setAccountInfo(accountId, strategyId, token):
     redis = redisManager.getRedis()
-    RedisUtils.set(redis,"juejin-account-id", accountId)
-    RedisUtils.set(redis,"juejin-strategy-id", strategyId)
-    RedisUtils.set( redis, "juejin-token", token)
+    RedisUtils.set(redis, "juejin-account-id", accountId)
+    RedisUtils.set(redis, "juejin-strategy-id", strategyId)
+    RedisUtils.set(redis, "juejin-token", token)
 
 
 def getAccountInfo():
     redis = redisManager.getRedis()
-    account_id =RedisUtils.get( redis, "juejin-account-id")
+    account_id = RedisUtils.get(redis, "juejin-account-id")
     strategy_id = RedisUtils.get(redis, "juejin-strategy-id")
     token = RedisUtils.get(redis, "juejin-token")
     return account_id, strategy_id, token
@@ -143,7 +143,6 @@
 
     # 澶氫釜鏃堕棿鐐硅幏鍙栨敹鐩樹环
     gmapi.schedule(schedule_func=__get_latest_info, date_rule='1d', time_rule='09:28:00')
-
 
     # 鍒濆鍖栧唴瀹�
     clients = authority.get_l2_clients()

--
Gitblit v1.8.0