更改总计逻辑

This commit is contained in:
2026-07-21 15:21:29 +08:00
parent 0c73c40e8a
commit cff1074474
10 changed files with 620 additions and 50 deletions

View File

@@ -20,7 +20,7 @@ from . import sum_data_bp
def collect_sum_data():
"""从历史记录采集求和数据"""
try:
data = request.json or {}
data = request.get_json(silent=True) or {}
history_id = data.get('history_id')
log_info(f'[求和数据API] 采集求和数据历史记录ID: {history_id or "全部"}', 'api')