From 47d95908d3220299d17348f1dd8f13c9b1a4f469 Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期二, 15 七月 2025 22:02:44 +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