From 1670d0aadca3ba56e718a7e2d662445ecbd65afb Mon Sep 17 00:00:00 2001 From: BrunoGao Date: Tue, 9 Sep 2025 12:55:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=81=A5=E5=BA=B7?= =?UTF-8?q?=E7=B3=BB=E7=BB=9FAPI=E6=A8=A1=E5=9D=97=E5=AF=BC=E5=85=A5?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修正health_api.py中错误的类名导入 - 将HealthBaselineEngine改为RealTimeHealthBaselineEngine - 将HealthScoreEngine改为RealTimeHealthScoreEngine - 将HealthRecommendationEngine改为RealTimeHealthRecommendationEngine - 将HealthProfileEngine改为RealTimeHealthProfileEngine - 解决健康系统API模块加载失败问题 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- ljwx-bigscreen/bigscreen/bigScreen/health_api.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ljwx-bigscreen/bigscreen/bigScreen/health_api.py b/ljwx-bigscreen/bigscreen/bigScreen/health_api.py index 22b9718..92ae464 100644 --- a/ljwx-bigscreen/bigscreen/bigScreen/health_api.py +++ b/ljwx-bigscreen/bigscreen/bigScreen/health_api.py @@ -28,10 +28,10 @@ from functools import wraps import traceback # 导入健康引擎模块 -from .health_baseline_engine import HealthBaselineEngine -from .health_score_engine import HealthScoreEngine -from .health_recommendation_engine import HealthRecommendationEngine -from .health_profile_engine import HealthProfileEngine +from .health_baseline_engine import RealTimeHealthBaselineEngine +from .health_score_engine import RealTimeHealthScoreEngine +from .health_recommendation_engine import RealTimeHealthRecommendationEngine +from .health_profile_engine import RealTimeHealthProfileEngine from .health_cache_service import health_cache_service from .health_data_quality import health_data_quality @@ -115,13 +115,13 @@ def init_engines(): try: if not baseline_engine: - baseline_engine = HealthBaselineEngine() + baseline_engine = RealTimeHealthBaselineEngine() if not score_engine: - score_engine = HealthScoreEngine() + score_engine = RealTimeHealthScoreEngine() if not recommendation_engine: - recommendation_engine = HealthRecommendationEngine() + recommendation_engine = RealTimeHealthRecommendationEngine() if not profile_engine: - profile_engine = HealthProfileEngine() + profile_engine = RealTimeHealthProfileEngine() logger.info("✅ 健康引擎初始化成功")