From 69c26b43a88ced7a18a637ea6dd120671382deb0 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期四, 19 九月 2024 00:46:04 +0800 Subject: [PATCH] bug修复 --- l2/l2_sell_manager.py | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/l2/l2_sell_manager.py b/l2/l2_sell_manager.py index 73538a2..75ef9a0 100644 --- a/l2/l2_sell_manager.py +++ b/l2/l2_sell_manager.py @@ -64,17 +64,18 @@ RedisUtils.delete_async(self.__db, k) # 璁剧疆褰撳墠鐨勬�诲崠 - def set_current_total_sell_data(self, code, time_str, money, volume, sell_1_info): + def set_current_total_sell_data(self, code, time_str, money, volume, sell_1_info, sell_n_info): """ @param code: @param time_str: @param money: @param volume: @param sell_1_info: 鏍煎紡(鍗�1浠锋牸,鍗�1閲�) + @param sell_n_info锛氬崠鎸′綅 @return: """ # 璁板綍鏃ュ織 - async_log_util.info(logger_l2_market_sell, f"{code}: {time_str}-{money} {sell_1_info}") + async_log_util.info(logger_l2_market_sell, f"{code}: {time_str}-{money} {sell_1_info} {sell_n_info}") if code not in self.__total_sell_data_cache_list_cache: self.__total_sell_data_cache_list_cache[code] = [] @@ -82,7 +83,7 @@ 0] == time_str: return - self.__total_sell_data_cache_list_cache[code].append((time_str, round(money), volume, sell_1_info)) + self.__total_sell_data_cache_list_cache[code].append((time_str, round(money), volume, sell_1_info, sell_n_info)) # 淇濈暀鏈�澶�10鏉℃暟鎹� if len(self.__total_sell_data_cache_list_cache[code]) > 10: self.__total_sell_data_cache_list_cache[code] = self.__total_sell_data_cache_list_cache[code][-10:] @@ -90,7 +91,7 @@ def get_current_total_sell_data(self, code): """ @param code: - @return:(鏃堕棿, 鎬讳拱棰�, 鎬婚噺, 鍗�1淇℃伅) + @return:(鏃堕棿, 鎬讳拱棰�, 鎬婚噺, 鍗�1淇℃伅, 鍗栨尅浣嶄俊鎭�) """ total_sell_data_cache_list = self.__total_sell_data_cache_list_cache.get(code) if not total_sell_data_cache_list: @@ -103,7 +104,7 @@ 鑾峰彇鍙紩鐢ㄧ殑鎬诲崠棰� @param code: @param time_str: 褰撳墠鏁版嵁鎴鏃堕棿 - @return: (time_str, round(money), volume, sell_1_info) + @return: (time_str, round(money), volume, sell_1_info, sell_n_infos) """ total_sell_data_cache_list = self.__total_sell_data_cache_list_cache.get(code) if total_sell_data_cache_list: -- Gitblit v1.8.0