inited_data.py
@@ -41,7 +41,7 @@ RedisUtils.set(redis, "juejin-strategy-id", strategyId, auto_free=False) RedisUtils.set(redis, "juejin-token", token, auto_free=False) finally: redis.connection_pool.disconnect() RedisUtils.realse(redis) def getAccountInfo(): @@ -52,7 +52,7 @@ token = RedisUtils.get(redis, "juejin-token", auto_free=False) return account_id, strategy_id, token finally: redis.connection_pool.disconnect() RedisUtils.realse(redis) def init_data():