## 主要修复 - 修复Creo软件运行状态检测失败问题 - 添加完整的软件停止功能支持 - 改进多进程软件的进程管理逻辑 ## 技术改进 - 更新软件配置支持多进程名称检测 - 优化进程停止逻辑,增加超时配置 - 新增 stop_software WebSocket消息类型 - 完善错误处理和日志记录 ## 配置更新 - configs/software_config.yaml: 支持进程名称列表和停止超时 - 添加Revit 2017配置支持 ## 文档更新 - README.md: 更新软件配置说明和API列表 - frontend-api-docs.md: 添加停止软件API文档 - CHECKPOINT.md: 记录修复进展和解决方案 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
26 lines
736 B
Python
26 lines
736 B
Python
import sys
|
|
sys.path.append('app')
|
|
|
|
from config import settings, software_config
|
|
|
|
# 测试基础配置
|
|
print("基础配置测试:")
|
|
print(f"应用名称: {settings.app_name}")
|
|
print(f"端口: {settings.port}")
|
|
print(f"调试模式: {settings.debug}")
|
|
|
|
# 测试软件配置
|
|
print("\n软件配置测试:")
|
|
try:
|
|
config = software_config.load_config()
|
|
print("✅ 配置文件加载成功")
|
|
|
|
software_list = software_config.get_software_list()
|
|
print(f"可用软件: {software_list}")
|
|
|
|
for software_id in software_list:
|
|
sw_config = software_config.get_software_config(software_id)
|
|
print(f"{software_id}: {sw_config['name']}")
|
|
|
|
except Exception as e:
|
|
print(f"❌ 配置加载失败: {e}") |