fix: auto repair bugs #41, #40, #39 #1

Merged
zyc merged 1 commits from fix/auto-20260225-152423 into main 2026-02-25 15:26:58 +08:00
Owner

自动修复报告

修复的 Bug:

  • #41: LogicError - UserService.search_users 搜索用户时 is_active=False 过滤条件不生效,无法搜索已停用用户
  • #40: LogicError - list_all_devices_admin 管理员设备列表分页偏移量计算错误,page=1 时跳过前 page_size 条记录
  • #39: SecurityVulnerability - PaymentService.calc_refund_amount 退款比例校验缺失上限,refund_ratio > 1 时可超额退款(如 200% 退款),

⚠️ 包含高严重等级 Bug (max=10/10),需人工审核

修改文件:

  • app/api/device_api.py
  • app/services/payment_service.py
  • app/services/user_service.py
## 自动修复报告 修复的 Bug: - #41: LogicError - UserService.search_users 搜索用户时 is_active=False 过滤条件不生效,无法搜索已停用用户 - #40: LogicError - list_all_devices_admin 管理员设备列表分页偏移量计算错误,page=1 时跳过前 page_size 条记录 - #39: SecurityVulnerability - PaymentService.calc_refund_amount 退款比例校验缺失上限,refund_ratio > 1 时可超额退款(如 200% 退款), ⚠️ **包含高严重等级 Bug (max=10/10),需人工审核** 修改文件: - `app/api/device_api.py` - `app/services/payment_service.py` - `app/services/user_service.py`
zyc added 1 commit 2026-02-25 15:25:29 +08:00
zyc merged commit c252ad0c78 into main 2026-02-25 15:26:58 +08:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: zyc/rtc_backend#1
No description provided.