From dc36d72459ea92e4c78e2a2eefb5655e82a3d459 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期二, 04 六月 2024 23:52:26 +0800 Subject: [PATCH] 9:25之前的开1订阅 --- code_attribute/gpcode_manager.py | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/code_attribute/gpcode_manager.py b/code_attribute/gpcode_manager.py index 0bef2bf..465959a 100644 --- a/code_attribute/gpcode_manager.py +++ b/code_attribute/gpcode_manager.py @@ -294,7 +294,7 @@ return self.__pause_buy_codes_cache -# 蹇呬拱鍗� +# 蹇呬拱鍗�/绾㈠悕鍗� class MustBuyCodesManager: __instance = None __db = 0 @@ -763,6 +763,12 @@ return tool.to_price(decimal.Decimal(str(price)) * decimal.Decimal("1.1")) +def get_limit_down_price_by_preprice(price): + if price is None: + return None + return tool.to_price(decimal.Decimal(str(price)) * decimal.Decimal("0.9")) + + # 鑾峰彇璺屽仠浠� def get_limit_down_price(code): price = CodePrePriceManager.get_price_pre_cache(code) -- Gitblit v1.8.0