From cd373d45dfe56b74efd6429f3710ca8652836f62 Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期三, 20 八月 2025 10:25:42 +0800
Subject: [PATCH] bug修复

---
 code_attribute/code_volumn_manager.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/code_attribute/code_volumn_manager.py b/code_attribute/code_volumn_manager.py
index edfd3c0..2af92a6 100644
--- a/code_attribute/code_volumn_manager.py
+++ b/code_attribute/code_volumn_manager.py
@@ -101,7 +101,7 @@
         if k_format and not k_format[13]:
             has_limit_up_in_60 = False
         volume = self.get_max_volume_in_5days(code)
-        if volume * limit_up_price >= 9e8 and has_limit_up_in_60:
+        if volume and volume * limit_up_price >= 9e8 and has_limit_up_in_60:
             return volume
         return int(self.get_reference_volume_as_money_y(code) * 1e8 / limit_up_price)
 

--
Gitblit v1.8.0