chengkai3
|
9ba1cc4388
|
[feat]:[FL-118][增加密码错误5次禁止登录半小时功能]
- 在User模型添加failed_login_attempts和failed_login_locked_until字段
- 在database.py添加字段迁移兼容性函数_ensure_user_login_lockout_column_compatibility
- 修改auth_service.py的login_user函数实现登录锁定逻辑:
* 检查账户是否处于锁定状态
* 密码错误时递增失败计数
* 失败5次后锁定账户30分钟
* 登录成功后重置失败计数和锁定状态
- 添加单元测试test_login_lockout.py验证功能
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-14 01:07:26 +08:00 |
|
chengkml
|
2098e6797d
|
feat: restore system messages admin page
|
2026-06-14 00:41:19 +08:00 |
|
chengkai3
|
1d11bf9fc3
|
[feat]:[FL-109][增加系统消息发送功能]
- 后端:创建system_messages表模型和Schema
- 后端:实现消息创建、查询、标记已读的服务层
- 后端:新增REST API接口(需admin.system_message权限)
- 前端:完善系统消息抽屉弹窗,显示消息列表
- 前端:自动加载未读数量,支持标记已读
- 数据库:新增迁移脚本建表
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-13 23:27:29 +08:00 |
|
chengkai3
|
46e3b203d4
|
feat:[FL-111][地闪密度计算功能优化]实现电压等级自动推荐半径
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-13 23:09:44 +08:00 |
|
chengkai3
|
a77500a762
|
fix: [FL-110] 对齐雷电流幅值统计数据过滤逻辑
修改 _fit_line_current_parameters 函数,使其数据处理逻辑与参考工程保持一致:
1. 数据过滤改为取绝对值,不再过滤0值和负值
2. 返回值增加 peak_max 和 peak_min 字段
3. API 响应模型添加最大值和最小值字段
主要变更:
- api/app/services/lightning_service.py
* _fit_line_current_parameters: 数据清洗逻辑从 if item > 0 改为 abs(item)
* 返回值从 3 个增加到 5 个,新增 peak_max 和 peak_min
* prepare_line_lightning_current: 移除查询时的 > 0 过滤
* 在 extra_profile_json 和 preparation_source 中记录 peak_max/peak_min
- api/app/schemas/lightning.py
* LightningCurrentPreparationResponse: 添加 peak_max 和 peak_min 字段
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-13 23:00:24 +08:00 |
|
chengkai3
|
07735fb23f
|
feat: [FL-104][高程数据管理中文件明细要展示各个文件的坐标范围]
- 添加 ElevationDatasetFileMeta 数据库模型存储文件级别坐标范围
- 更新 API schema 和 service,返回每个文件的 bbox 信息
- 修改高程数据分析任务,遍历目录所有文件并提取坐标范围
- 前端文件明细表格新增坐标范围列
- 创建数据库迁移脚本
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-13 07:59:08 +08:00 |
|
chengkai3
|
0f5b338a93
|
fix:[FL-99][修复ATP版本上传接口响应模型不匹配导致500错误]
问题:POST /api/v1/atp/assets/{asset_id}/releases/upload 接口声明
response_model=AtpAssetReleaseDetail,但实际返回 {task_id, status} 字典,
导致FastAPI响应验证失败,返回500错误。
解决方案:
1. 新增 AtpAssetReleaseUploadResponse 响应模型,包含 task_id 和 status 字段
2. 更新接口声明使用正确的响应模型
3. 返回类型注解改为 AtpAssetReleaseUploadResponse
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-12 23:35:52 +08:00 |
|
chengkai3
|
86377f82d4
|
fix: 修复scheduled_tasks表外键约束违规错误
修复了当system作为actor_user_id时,update_user字段违反外键约束的问题。
当actor_user_id为"system"时,将create_user和update_user设置为NULL,
而不是尝试使用不存在的"system"用户ID。
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-12 23:25:53 +08:00 |
|
chengkai3
|
2a5cbe474b
|
fix:[FL-92][高程数据管理预览时地形图渲染不出来] - 添加minzoom字段
修复地形图layer.json缺少minzoom字段导致Cesium无法正确加载地形的问题。
根本原因:
- Cesium地形加载需要layer.json同时包含minzoom和maxzoom字段
- 之前只有maxzoom字段,导致Cesium不知道从哪个层级开始加载地形
- 虽然瓦片数据正常(API返回200),但前端无法正确渲染三维地形
修改内容:
1. 在ElevationTerrainLayerResponse模型中添加minzoom字段(schemas/elevation.py)
2. 在地形构建代码中设置minzoom=0(services/elevation_service.py)
3. 地形瓦片的zoom level范围现在完整定义为0-6
影响:
- 已构建的地形数据需要重新触发构建任务才能生成包含minzoom的新layer.json
- 新构建的地形将自动包含minzoom字段
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-12 22:57:25 +08:00 |
|
chengkai3
|
ee1fa9b725
|
feat: [FL-88] 把ATP上传版本ZIP包动作变成异步
后端已使用 Celery 异步处理上传任务,前端需对接异步响应。
**主要改动:**
1. 前端处理异步上传响应
- 修改 saveReleaseMutation 识别后端返回的 {task_id, status} 响应
- 异步上传时显示"正在后台处理"提示,不阻塞用户操作
- 保留编辑版本的同步更新逻辑
2. 订阅 WebSocket 主题自动刷新
- 添加 useTopicSubscription 订阅 "admin.atp-assets" 主题
- 任务完成后自动刷新页面数据,无需手动刷新
3. 后端主题注册
- 在 topic_registry.py 添加 "admin.atp-assets" 主题
- 允许有 atp 权限的用户订阅该主题
**测试结果:**
- ✅ 前端类型正确处理异步和同步响应
- ✅ WebSocket 主题订阅正确配置
- ✅ 后端主题已注册并配置权限
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-12 18:52:20 +08:00 |
|
chengkai3
|
da9fd1cd3a
|
[feat]:[FL-84][ATP模型管理改造11]
1. 为AtpAsset模型增加避雷器装设组合配置项(arrester_config)
2. 将release zip上传改为异步处理
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-12 12:48:46 +08:00 |
|
chengkai3
|
c6d547a985
|
feat: 高程导入改为异步非阻塞,避免大文件上传时前端长时间等待
改动范围:
- api/app/services/elevation_service.py
- web/src/app/admin/elevation/page.tsx
改动点:
1. API 端快速返回(elevation_service.py)
- 修改 `import_dataset_data_files`:不再在请求内同步执行暂存
- 新增 `_prepare_upload_files_for_staging`:快速读取上传文件并序列化为 base64
- API 端立即创建任务并返回,文件内容暂存在 `staged_files_json`
2. Worker 端异步暂存(elevation_service.py)
- 修改 `execute_dataset_data_import_job`:从 `staged_files_json` 读取文件
- 新增 `_stage_dataset_import_job_uploads_from_serialized`:从序列化数据恢复并暂存
- Worker 负责完整的"暂存→导入→分析"流程
3. 前端阶段展示(page.tsx)
- 更新 `importJobStageLabel`:添加 "pending" 和 "staging" 阶段标签
- 用户可看到"等待执行"和"暂存文件"等阶段
关联影响:
- 数据库 `staged_files_json` 字段存储格式变更(存储序列化的文件内容)
- 任务初始状态改为 "pending",Worker 启动后变为 "staging"
技术方案:
- 采用 base64 序列化文件内容存入数据库
- 保持现有暂存目录和清理逻辑不变
- WebSocket 进度推送机制继续有效
验证:
- Python 语法检查通过
- 修改符合现有代码风格和约定
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-12 12:42:17 +08:00 |
|
chengkai3
|
4328d9fd34
|
[fix/feat]:[FL-82][ATP模型管理改造]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-11 23:45:57 +08:00 |
|
chengkai3
|
fac37ddb8d
|
[fix/feat]:[FL-81][ATP模型管理改造为资产发布制]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-11 22:39:48 +08:00 |
|
chengkai3
|
61a1954034
|
[feat]:[FL-80][高程数据导入异步并支持进度回看]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-10 15:38:10 +08:00 |
|
chengkai3
|
3a8027803c
|
[fix/feat]:[FL-77][修复杆塔高程回填任务 actor_user_id 传递]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-10 08:31:11 +08:00 |
|
chengkai3
|
2a54857fe1
|
[fix/feat]:[FL-76][高程数据导入报错]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-10 08:26:51 +08:00 |
|
chengkai3
|
2ad2405cd3
|
[fix/feat]:[FL-74][高程数据支持DEM地形瓦片预览和线路地形图]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-10 00:26:09 +08:00 |
|
chengkai3
|
f7013ff32c
|
[fix]:[FL-70][移除测试临时锁文件]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-09 12:30:27 +08:00 |
|
chengkai3
|
4ce57708b4
|
[fix]:[FL-70][删除线路时,塔杆要一起删除]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-09 12:30:27 +08:00 |
|
chengkai3
|
d7f712e3c1
|
[feat]:[FL-69][接入 legacy ATP/EGM worker 适配链路]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-09 12:28:02 +08:00 |
|
chengkai3
|
d36aeb8636
|
[feat]:[FL-65][新增定时任务管理页面]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-09 12:00:59 +08:00 |
|
chengkai3
|
f26f7859cd
|
[feat]:[FL-62][补充系统日志审计覆盖范围]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-09 11:31:00 +08:00 |
|
chengkai3
|
4e2b3dcdad
|
[fix]:[FL-57][统一计算任务到 Celery worker]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-09 08:29:10 +08:00 |
|
chengkai3
|
2a10cc62d8
|
[fix]:[FL-55][ATP模型管理和线路管理菜单冲突]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-09 00:11:58 +08:00 |
|
chengkai3
|
1adec62d6c
|
[feat]:[FL-51][ATP模型管理去掉版本管理]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-08 23:44:18 +08:00 |
|
chengkai3
|
23980a3cf3
|
[fix]:[FL-48][it looks like wine32 is missing]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-08 22:16:02 +08:00 |
|
chengkai3
|
de63459173
|
[fix]:[FL-47][把wine安装到fquiz-celery-worker中去]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-08 18:58:24 +08:00 |
|
chengkai3
|
2f0f24e137
|
[fix]:[FL-42][修正模型导入清单]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-08 12:54:00 +08:00 |
|
chengkai3
|
5a41cd4d3d
|
[fix/feat]:[FL-42][清理题库 Markdown 导题 热搜遗留模块]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-08 12:48:12 +08:00 |
|
chengkai3
|
a6bb67752c
|
[fix]:[FL-44][清理遗留聊天 / 模型注册模块]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-08 12:35:24 +08:00 |
|
chengkai3
|
dd8dd9244d
|
[fix]:[FL-43][清理遗留需求协同待办日程JWT生成器模块]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-08 12:32:11 +08:00 |
|
chengkml
|
2263a0d45c
|
fix(admin): restore default menu visibility and protection
|
2026-06-08 10:49:35 +08:00 |
|
chengkai3
|
4d7f67f73a
|
[fix/feat]:[FL-39][移除 seed 启动自动调用,改为管理员手动接口触发]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-08 09:08:01 +08:00 |
|
chengkai3
|
3451589401
|
[migrate]:[FL-37][补齐防雷报告图7雷区分布图输出]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-08 05:15:45 +08:00 |
|
chengkai3
|
171a4a6089
|
[migrate]:[FL-35][杆塔多回路几何专用编辑器]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-08 03:29:41 +08:00 |
|
chengkai3
|
f7c577932f
|
[migrate]:[FL-33][补齐防雷报告分级章节与图表输出]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-08 01:32:56 +08:00 |
|
chengkai3
|
a9e2e587ae
|
[migrate]:[FL-30][加装避雷器复算与报告表14]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-07 23:48:53 +08:00 |
|
chengkai3
|
0746e3ce28
|
[migrate]:[FL-31][add fl-analysis result export]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-07 23:28:54 +08:00 |
|
chengkai3
|
cd0d605c5b
|
[migrate]:[FL-27][补齐杆塔专业参数编辑与导出字段]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-07 21:42:05 +08:00 |
|
chengkai3
|
aebf152cd4
|
[migrate]:[FL-24][参数准备闭环与就绪校验]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-07 20:37:53 +08:00 |
|
chengkai3
|
e21472bbd9
|
[migrate]:[FL-21][防雷分析普通/同跳计算接入ATP执行链路]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-07 19:30:47 +08:00 |
|
chengkai3
|
923e4a8220
|
[migrate]:[FL-17][普通计算同跳计算工作流]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-07 18:09:32 +08:00 |
|
chengkai3
|
6417c295e5
|
[migrate]:[FL-16][补齐报告生成与导出工作流]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-07 17:39:20 +08:00 |
|
chengkai3
|
8a2af9135f
|
[migrate]:[FL-18][迁移故障复现工具]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-07 17:35:43 +08:00 |
|
chengkai3
|
6244534582
|
[migrate]:[FL-13][迁移防雷计算规程法公式]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-07 16:35:08 +08:00 |
|
chengkai3
|
632d2a2d17
|
[migrate]:[818141ae-204d-4339-8914-a1896eb8e4dc][防雷改造迁移]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-07 16:06:52 +08:00 |
|
chengkai3
|
4c143e2842
|
[fix]:[FL-9][线路管理-创建线路优化]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-07 11:49:10 +08:00 |
|
chengkai3
|
5194638af2
|
[fix/feat]:[FL-8][线路管理-新建线路表单调整]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-07 11:35:02 +08:00 |
|
chengkml
|
95d6ed9461
|
chore: normalize fl-analysis api file mode
|
2026-06-06 23:40:02 +08:00 |
|