From 13822f1c61c3d4c4705fa805b225798f81d37442 Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期四, 28 八月 2025 18:25:07 +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 a142ce1..f748157 100644
--- a/api/outside_api_command_callback.py
+++ b/api/outside_api_command_callback.py
@@ -1441,7 +1441,8 @@
                                     "buy_first_limit_up": 1 if constant.CAN_BUY_FIRST_LIMIT_UP else 0,
                                     "can_auto_add_white": 1 if constant.CAN_AUTO_ADD_WHITE else 0,
                                     "can_auto_add_want_buy_codes": 1 if constant.CAN_AUTO_ADD_WANT_BUY_CODES else 0,
-                                    "can_auto_l_down_rate_change": 1 if constant.CAN_AUTO_L_DOWN_RATE_CHANGE else 0
+                                    "can_auto_l_down_rate_change": 1 if constant.CAN_AUTO_L_DOWN_RATE_CHANGE else 0,
+                                    "auto_add_want_buy_codes_time_ranges": constant.AUTO_ADD_WANT_BUY_CODES_TIME_RANGES
                                     }}
                 self.send_response({"code": 0, "data": data, "msg": f""},
                                    client_id,
@@ -1476,6 +1477,12 @@
                         constant.CAN_AUTO_L_DOWN_RATE_CHANGE = True if radical_buy.get(
                             'can_auto_l_down_rate_change') else False
 
+                    if radical_buy.get('auto_add_want_buy_codes_time_ranges') is not None:
+                        time_ranges = radical_buy.get('auto_add_want_buy_codes_time_ranges')
+                        constant.AUTO_ADD_WANT_BUY_CODES_TIME_RANGES = (time_ranges.split(",")[0], time_ranges.split(",")[1])
+
+
+
 
 
                 self.send_response({"code": 0, "data": {}, "msg": f""},

--
Gitblit v1.8.0