From e95ea73d04c06f4cd46a3d1497c39c80352a8cd0 Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期五, 29 八月 2025 15:16:37 +0800
Subject: [PATCH] bug修复

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

diff --git a/api/outside_api_command_callback.py b/api/outside_api_command_callback.py
index f748157..ce05a22 100644
--- a/api/outside_api_command_callback.py
+++ b/api/outside_api_command_callback.py
@@ -290,8 +290,8 @@
             code_list_type = data["code_list_type"]
             operate = data["operate"]
             code = data.get("code")
-            if code and not tool.is_can_buy_code(code):
-                raise Exception(f"涓嶆槸鍙互浜ゆ槗鐨勪唬鐮侊細{code}")
+            # if code and not tool.is_can_buy_code(code):
+            #     raise Exception(f"涓嶆槸鍙互浜ゆ槗鐨勪唬鐮侊細{code}")
             fresult = {"code": 0}
             if code_list_type == outside_api_command_manager.CODE_LIST_WANT:
                 if operate == outside_api_command_manager.OPERRATE_SET:
@@ -1032,7 +1032,8 @@
                         except Exception as e:
                             logger_debug.exception(e)
 
-                result = {"code": 0, "data": {"account_available_money": account_available_money, "delegates": fdatas, "rate_of_increase_step": constant.L_DOWN_RATE_INCREASE_STEP}}
+                result = {"code": 0, "data": {"account_available_money": account_available_money, "delegates": fdatas,
+                                              "rate_of_increase_step": constant.L_DOWN_RATE_INCREASE_STEP}}
                 self.send_response(result, client_id, request_id)
             elif ctype == "get_delegated_buy_code_infos_v2":
                 account_available_money = trade_data_manager.AccountMoneyManager().get_available_money_cache()
@@ -1194,7 +1195,8 @@
                                     async_log_util.info(logger_debug, f"缁熻瀹炴挙鐢ㄦ椂锛歿code} - {use_time}")
                             except Exception as e:
                                 logger_debug.exception(e)
-                            fdata["volume_info"] = code_volumn_manager.CodeVolumeManager().get_volume_rate(code, with_info=True)
+                            fdata["volume_info"] = code_volumn_manager.CodeVolumeManager().get_volume_rate(code,
+                                                                                                           with_info=True)
                             fdatas.append(fdata)
                         except Exception as e:
                             logger_debug.exception(e)
@@ -1479,11 +1481,8 @@
 
                     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])
-
-
-
-
+                        constant.AUTO_ADD_WANT_BUY_CODES_TIME_RANGES = (
+                        time_ranges.split(",")[0], time_ranges.split(",")[1])
 
                 self.send_response({"code": 0, "data": {}, "msg": f""},
                                    client_id,

--
Gitblit v1.8.0