From 5b5edf1f3a78487bae1bebe054a3d37d1d607f88 Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期四, 28 十二月 2023 16:32:43 +0800
Subject: [PATCH] 开盘啦原因输出

---
 l2/l2_data_manager_new.py |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/l2/l2_data_manager_new.py b/l2/l2_data_manager_new.py
index 11e54b1..b78f2a0 100644
--- a/l2/l2_data_manager_new.py
+++ b/l2/l2_data_manager_new.py
@@ -676,7 +676,12 @@
                         info.set_kpl_blocks([])
                     can_buy_result = CodePlateKeyBuyManager.can_buy(code)
                     if can_buy_result:
-                        info.set_kpl_match_blocks(can_buy_result[0])
+                        if not can_buy_result[0] and can_buy_result[1]:
+                            info.set_kpl_match_blocks(["鐙嫍"])
+                        elif not can_buy_result[0] and not can_buy_result[1]:
+                            info.set_kpl_match_blocks("闈炵嫭鑻椾笉婊¤冻韬綅")
+                        else:
+                            info.set_kpl_match_blocks(can_buy_result[0])
                     trade_record_log_util.add_place_order_log(code, info)
                 except Exception as e:
                     async_log_util.error(logger_l2_error, f"鍔犲叆涔板叆璁板綍鏃ュ織鍑洪敊锛歿str(e)}")

--
Gitblit v1.8.0