v0.7测试

This commit is contained in:
2026-04-15 08:41:44 +08:00
parent a7f491cef6
commit 637f3b665d
7 changed files with 30 additions and 7 deletions

View File

@@ -346,3 +346,14 @@
【修改方式】
- auth_service.py: login 方法返回字典添加 `"student_id": user["student_id"]`
- auth.py: 登录路由 success_response data 字典添加 `"student_id": result.get("student_id")`
- [x] 12.12 批量修复6个管理端/学生端Bug
【目标对象】`backend/models/user.py``backend/routes/admin.py``frontend/assets/js/admin.js``backend/services/conduct_service.py``backend/models/conduct.py``frontend/admin/history.php`
【修改目的】用户报告6个运行时Bug1) 修改密码失败2) 管理端学生列表4223) 添加管理员4044) admin.js报错null5) 历史记录5006) history.php学生列表不完整
【修改方式】
- user.py: get_by_user_id SQL 添加 password_hash 字段(修改密码时验证旧密码需要此字段)
- admin.py: page_size 上限 le=100→le=1000路由 /admin/add→/add, /admin/list→/list避免双重/api/admin前缀
- admin.js: showAddAdminModal 中 addAdminForm.reset() 改为 ?.reset()
- conduct_service.py: get_history 方法开头添加空字符串→None转换
- conduct.py: get_all_records 方法开头添加空字符串→None转换
- history.php: loadStudentsForSelect 传 {page_size: 1000}