From 4606c0c03f6417bf2fda4953f795eabdf2b8e679 Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期二, 15 七月 2025 18:29:02 +0800
Subject: [PATCH] 人为设置累计大单阈值时,如果不够移红/没加红的撤单率以人为的撤单率为准

---
 api/outside_api_command_callback.py |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/api/outside_api_command_callback.py b/api/outside_api_command_callback.py
index 3137b94..6c171fe 100644
--- a/api/outside_api_command_callback.py
+++ b/api/outside_api_command_callback.py
@@ -1503,7 +1503,14 @@
                                        client_id,
                                        request_id)
                     return
-                TotalDealBigOrderThresholdMoneyManager().set_money(code, int(money))
+                TotalDealBigOrderThresholdMoneyManager().set_money(code, int(money), trade_manager.CodesTradeStateManager().get_trade_state_cache(code))
+
+                # 濡傛灉鏄姞绾㈢姸鎬侊紝涓斿ぇ鍗曚笉澶熷氨闇�瑕佺Щ绾�
+                if gpcode_manager.MustBuyCodesManager().is_in_cache(code):
+                    deal_big_order_info = radical_buy_data_manager.get_total_deal_big_order_info(code, gpcode_manager.get_limit_up_price_as_num(code))
+                    if deal_big_order_info[0] > 0:
+                        gpcode_manager.MustBuyCodesManager().remove_code(code)
+                        trade_record_log_util.add_common_msg(code, "绉荤孩", f"澶у崟闃堝�间慨鏀癸紙{money}锛�")
                 self.send_response({"code": 0, "data": {}},
                                    client_id,
                                    request_id)

--
Gitblit v1.8.0