From fbac2e1e6ae16a4fff90a1ec8e7ac680c8bd459b Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期四, 14 八月 2025 15:47:28 +0800
Subject: [PATCH] 昨日收盘价修改

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

diff --git a/api/outside_api_command_callback.py b/api/outside_api_command_callback.py
index 06bd2ac..a075fdc 100644
--- a/api/outside_api_command_callback.py
+++ b/api/outside_api_command_callback.py
@@ -806,7 +806,7 @@
             current_price = L1DataManager.get_l1_current_price(code)
             if current_price:
                 fdata["cost_price"] = current_price
-                pre_close_price = CodePrePriceManager.get_price_pre_cache(code)
+                pre_close_price = CodePrePriceManager().get_price_pre_cache(code)
                 if current_price and pre_close_price:
                     rate = round((float(current_price) - float(pre_close_price)) / float(pre_close_price), 4)
                     fdata["cost_price_rate"] = rate
@@ -1615,7 +1615,7 @@
                     result = {"code": 1, "msg": "鎷夊彇K绾垮け璐�"}
                 else:
                     # 鏇存柊鏄ㄦ棩鏀剁洏浠锋暟鎹�
-                    CodePrePriceManager.set_price_pre(code, volumes_data[0]['close'], force=True)
+                    CodePrePriceManager().set_price_pre(code, volumes_data[0]['close'], force=True)
                     gpcode_manager.clear_limit_up_price_cache(code)
                     limit_up_price = gpcode_manager.get_limit_up_price_as_num(code)
                     # 鏇存柊K绾跨壒寰佹暟鎹�

--
Gitblit v1.8.0