From 0eb33b4b4ed94940355c26a04e897c42f4838e58 Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期三, 12 六月 2024 18:06:20 +0800
Subject: [PATCH] bug修复

---
 cancel_strategy/s_l_h_cancel_strategy.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cancel_strategy/s_l_h_cancel_strategy.py b/cancel_strategy/s_l_h_cancel_strategy.py
index 2027665..c16753a 100644
--- a/cancel_strategy/s_l_h_cancel_strategy.py
+++ b/cancel_strategy/s_l_h_cancel_strategy.py
@@ -1021,7 +1021,7 @@
         # 淇濆瓨鏁版嵁
         if changed:
             threshold_time = 1 if tool.is_sz_code(code) else 2
-            if l_up_compute_info:
+            if l_up_compute_info and l_up_compute_info[1]:
                 if time.time() - l_up_compute_info[0] < threshold_time:
                     l2_log.l_cancel_debug(code, f"L鍓嶇洃鎺ф洿鏂板お棰戠箒锛歿threshold_time}")
                     return

--
Gitblit v1.8.0