From ae8d76a456b64c1c6c4ebf11b6ec33b7df217b1a Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期一, 18 八月 2025 13:43:46 +0800 Subject: [PATCH] bug修复 --- l2/l2_data_util.py | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-) diff --git a/l2/l2_data_util.py b/l2/l2_data_util.py index 44f6be9..e12f024 100644 --- a/l2/l2_data_util.py +++ b/l2/l2_data_util.py @@ -300,11 +300,7 @@ def is_same_time(cls, time1, time2): if constant.TEST: return True - time1_s = time1.split(":") - time1_second = int(time1_s[0]) * 3600 + int(time1_s[1]) * 60 + int(time1_s[2]) - time2_s = time2.split(":") - time2_second = int(time2_s[0]) * 3600 + int(time2_s[1]) * 60 + int(time2_s[2]) - if abs(time2_second - time1_second) < 3: + if abs(tool.trade_time_sub(time1, time2)) < 3: return True else: return False -- Gitblit v1.8.0