From 5acb6f700c6ffaf1c7470664c2f06dc6ecf2efba Mon Sep 17 00:00:00 2001
From: admin <admin@example.com>
Date: 星期二, 25 三月 2025 17:19:17 +0800
Subject: [PATCH] bug修改

---
 strategy/check_timer.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/strategy/check_timer.py b/strategy/check_timer.py
index 2468fe3..3e66784 100644
--- a/strategy/check_timer.py
+++ b/strategy/check_timer.py
@@ -37,9 +37,12 @@
                 # 瀹屾垚浜嗗悗灏嗘槸鍚︽墽琛岀殑寮�涓爣璁颁负鐪�
                 data_cache.execution = True
             # 鏈湴鏁版嵁鏇存柊鏃堕棿
-            if data_cache.UPDATE_DATA_TIME < now_time:
+            if data_cache.UPDATE_DATA_TIME < now_time and data_cache.index_K_line_write_execution is False:
                 # 鍐欏叆鎵�鏈夋寚鏁癒绾�
                 index_market_trend_strategy.all_index_k_line_dict_write()
+                logger.info(f"鍐欏叆鎵�鏈夊甫灞炴�ф寚鏁癒绾� 宸茬粡杩愯瀹屾垚")
+                # 瀹屾垚浜嗗悗灏嗘槸鍚︽墽琛岀殑寮�涓爣璁颁负鐪�
+                data_cache.index_K_line_write_execution = True
         except Exception as error:
             logger.error(f"瀹炴椂妫�娴嬪畾鏃跺櫒绾跨▼鎶ラ敊: {error}")
         finally:

--
Gitblit v1.8.0