From f0bd0a516cd71998c63f5ee4784ee0ed2d51748a Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期三, 02 四月 2025 15:41:16 +0800
Subject: [PATCH] bug修改

---
 servers/data_server.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/servers/data_server.py b/servers/data_server.py
index 55d1ba8..b673f79 100644
--- a/servers/data_server.py
+++ b/servers/data_server.py
@@ -807,7 +807,7 @@
                 deals_month = trade_data_manager.AccountMoneyManager().get_deal_count_info(start_date, end_date)
                 cost_month = sum([round(0.1 * x[1], 2) for x in delegates_month])
                 make_month = 0
-                make_month += max(1 * deals_month[0][1], deals_month[0][2] * 1.854 / 10000) + 1 * deals_month[1][
+                make_month += max(1 * deals_month[0][1] if deals_month[0][1] else 0, deals_month[0][2] * 1.854 / 10000 if deals_month[0][2] else 0) + 1 * deals_month[1][
                     1] + 0 * deals_month[2][1]
                 fdata["month_commission"] = round(make_month - cost_month, 2)
                 # 璁$畻褰撴棩鎵嬬画璐硅鎯�

--
Gitblit v1.8.0