Administrator
2023-08-03 783f6b0c18272b7f9ee988664c4194ecc80e23a7
l2/code_price_manager.py
@@ -45,6 +45,9 @@
    @classmethod
    def __save_buy1_price(cls, code, buy_1_price):
        # 不保存重复的数据
        if code in cls.__current_buy_1_price and cls.__current_buy_1_price[code] == buy_1_price:
            return
        cls.__current_buy_1_price[code] = buy_1_price
        RedisUtils.setex(cls.__get_redis(), f"buy1_price-{code}", tool.get_expire(), buy_1_price)