From 50805343f897aadad3da99c3dacefcbc095455e5 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期二, 24 六月 2025 13:51:06 +0800 Subject: [PATCH] bug修复/策略完善 --- main.py | 20 +++++++++++--------- 1 files changed, 11 insertions(+), 9 deletions(-) diff --git a/main.py b/main.py index 22b1d59..91e2324 100644 --- a/main.py +++ b/main.py @@ -58,11 +58,11 @@ 鏇存柊棰嗘定浠g爜淇℃伅 @return: """ + print("*******鏇存柊棰嗘定淇℃伅********") def update(): plates = __DataLoader.get_limit_up_reasons_with_plate_code() for p in plates: - print(p) __DataLoader.load_plate_codes(p[0], p[1]) if tool.get_now_time_str() < '16:00:00': @@ -85,7 +85,6 @@ day = tool.get_now_date_str() schedule.every().day.at("08:05:00").do(lambda: KPLCodeJXBlocksManager(day, codes).start_download_blocks()) schedule.every().day.at("08:10:00").do(lambda: update_leading_limit_up_datas()) - while True: try: schedule.run_pending() @@ -126,11 +125,11 @@ outside_api_callback.MyAPICallback()) manager.run(blocking=False) - # --------鍚姩浜ゆ槗---------- - huaxin_trade_api.run() - - threading.Thread(target=test, daemon=True).start() - # test() + try: + # --------鍚姩浜ゆ槗---------- + huaxin_trade_api.run() + except: + pass # ----鍒濆鍖�------------ __init() @@ -145,5 +144,8 @@ logger_system.exception(e) # -------鍚姩L2 market璁㈤槄------ - __run_l2_market_subscript() - logger_system.info("绯荤粺缁撴潫") + try: + __run_l2_market_subscript() + logger_system.info("绯荤粺缁撴潫") + except: + pass -- Gitblit v1.8.0