feat: 完成代码逻辑错误修复和任务清理系统实现

主要更新:
- 修复了所有主要的代码逻辑错误
- 实现了完整的任务清理系统
- 添加了系统设置页面的任务清理管理功能
- 修复了API调用认证问题
- 优化了密码加密和验证机制
- 统一了错误处理模式
- 添加了详细的文档和测试工具

新增功能:
- 任务清理管理界面
- 任务归档和清理日志
- API监控和诊断工具
- 完整的测试套件

技术改进:
- 修复了Repository方法调用错误
- 统一了模型方法调用
- 改进了类型安全性
- 优化了代码结构和可维护性
This commit is contained in:
AIGC Developer
2025-10-27 10:46:49 +08:00
parent 473e0f6a7e
commit 8c55f9f376
161 changed files with 22720 additions and 327 deletions

51
demo/check_queue.ps1 Normal file
View File

@@ -0,0 +1,51 @@
# 检查队列状态的PowerShell脚本
Write-Host "=== 检查应用状态 ===" -ForegroundColor Green
$port8080 = netstat -ano | findstr :8080
if ($port8080) {
Write-Host "✅ 应用正在运行 (端口8080)" -ForegroundColor Green
} else {
Write-Host "❌ 应用未运行 (端口8080)" -ForegroundColor Red
}
Write-Host "`n=== 检查Java进程 ===" -ForegroundColor Green
$javaProcesses = Get-Process | Where-Object {$_.ProcessName -like "*java*"}
if ($javaProcesses) {
Write-Host "✅ 找到Java进程:" -ForegroundColor Green
$javaProcesses | Select-Object Id, ProcessName, CPU | Format-Table
} else {
Write-Host "❌ 没有找到Java进程" -ForegroundColor Red
}
Write-Host "`n=== 尝试启动应用 ===" -ForegroundColor Yellow
try {
Write-Host "启动Spring Boot应用..." -ForegroundColor Yellow
Start-Process -FilePath "java" -ArgumentList "-jar", "target/demo-0.0.1-SNAPSHOT.jar", "--spring.profiles.active=dev" -WindowStyle Hidden
Write-Host "✅ 应用启动命令已执行" -ForegroundColor Green
Write-Host "等待应用启动..." -ForegroundColor Yellow
Start-Sleep -Seconds 30
Write-Host "`n=== 检查应用是否启动成功 ===" -ForegroundColor Green
$port8080After = netstat -ano | findstr :8080
if ($port8080After) {
Write-Host "✅ 应用启动成功" -ForegroundColor Green
Write-Host "`n=== 测试诊断接口 ===" -ForegroundColor Green
try {
$response = Invoke-WebRequest -Uri "http://localhost:8080/api/diagnostic/queue-status" -Method GET -TimeoutSec 10
Write-Host "✅ 诊断接口响应成功" -ForegroundColor Green
Write-Host "响应内容:" -ForegroundColor Yellow
$response.Content | ConvertFrom-Json | ConvertTo-Json -Depth 3
} catch {
Write-Host "❌ 诊断接口调用失败: $($_.Exception.Message)" -ForegroundColor Red
}
} else {
Write-Host "❌ 应用启动失败" -ForegroundColor Red
}
} catch {
Write-Host "❌ 启动应用失败: $($_.Exception.Message)" -ForegroundColor Red
}
Write-Host "`n=== 检查完成 ===" -ForegroundColor Green