Administrator
2023-08-03 4d321ae069fce2c0f6f7884bec8fa6c4ec534d1a
third_data/history_k_data_util.py
@@ -85,10 +85,14 @@
    @classmethod
    def getJueJinAccountInfo(cls):
        redis = cls.__redisManager.getRedis()
        account_id = RedisUtils.get(redis, "juejin-account-id")
        strategy_id =RedisUtils.get(redis, "juejin-strategy-id")
        token = RedisUtils.get(redis, "juejin-token")
        try:
            account_id = RedisUtils.get(redis, "juejin-account-id", auto_free=False)
            strategy_id =RedisUtils.get(redis, "juejin-strategy-id", auto_free=False)
            token = RedisUtils.get(redis, "juejin-token", auto_free=False)
        return account_id, strategy_id, token
        finally:
            redis.connection_pool.disconnect()
    @classmethod
    def get_juejin_code_list_with_prefix(cls, codes):