From 9f073f74e9e9822628e5e8cfa07508f15d2a2adf Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期二, 08 七月 2025 10:24:09 +0800 Subject: [PATCH] bug修复/策略完善 --- strategy/strategy_manager.py | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/strategy/strategy_manager.py b/strategy/strategy_manager.py index e8132a7..b7f9cf7 100644 --- a/strategy/strategy_manager.py +++ b/strategy/strategy_manager.py @@ -466,10 +466,13 @@ return if BlackListCodeManager().is_in_cache(code): return - # 娣诲姞璁板綍锛岀瓑寰呯‘璁や拱鍏� - PlaceOrderRecordManager(self.now_day).add_record(code, tool.get_now_time_str(), compute_result[3], - compute_result[4], sv.褰撳墠浠�, - round((sv.褰撳墠浠� - sv.鏄ㄦ棩鏀剁洏浠�) * 100 / sv.鏄ㄦ棩鏀剁洏浠�, 2)) + try: + # 娣诲姞璁板綍锛岀瓑寰呯‘璁や拱鍏� + PlaceOrderRecordManager(self.now_day).add_record(code, tool.get_now_time_str(), compute_result[3], + compute_result[4], sv.褰撳墠浠�, + round((sv.褰撳墠浠� - sv.鏄ㄦ棩鏀剁洏浠�) * 100 / sv.鏄ㄦ棩鏀剁洏浠�, 2)) + except Exception as e: + logger_debug.exception(e) # 褰撳墠鐨勪綆鍚哥瓥鐣ュ璞� -- Gitblit v1.8.0