XingQue
|
bfd5a63cb4
|
fix: 订单类型接口与 menu-access 对齐鉴权,去掉业务 401
kfhqptddlx 不再校验 phone/UserType,仅 JWT + is_kefu_backend_account,避免菜单能进但类型接口 401 踢登录。
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-07-06 19:35:23 +08:00 |
|
XingQue
|
2edca09859
|
fix: 俱乐部角色ORM过滤+商家订单权限002ab/003aa+legacy兜底+perm-debug
|
2026-07-06 19:25:15 +08:00 |
|
XingQue
|
a14cba63e6
|
fix: 集团可给各俱乐部分配不同功能角色,按俱乐部隔离权限校验
|
2026-07-06 19:14:00 +08:00 |
|
XingQue
|
ebcedbdea1
|
fix: 商家订单权限与菜单一致,含本俱乐部+全局角色
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-07-06 19:03:23 +08:00 |
|
XingQue
|
45a4dde034
|
fix: 切换俱乐部仅算本俱乐部角色权限,统一权限解析
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-07-06 19:00:18 +08:00 |
|
XingQue
|
553d2d5707
|
fix: 俱乐部+全局角色权限并集,修复002ac校验
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-07-06 18:44:11 +08:00 |
|
XingQue
|
df6c6912d9
|
fix: 恢复全局角色权限校验,修复商家订单403
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-07-06 18:36:39 +08:00 |
|
|
|
f1c8633345
|
perf: P1 性能优化批量修复 + kefu 视图拆分
P1 性能优化(避免循环内 N+1 / N 次 DB 查询):
- shop_order_views._batch_images: 移除 ThreadPoolExecutor 掩盖的 N 次查询,改单次批量 + Python 侧分组
- product_query.DashouHuiyuanList: 5N 查询 -> 3 次批量预取 + 本地闭包判断
- roles.GetRolePermissionView / 用户列表: 循环内 RolePermission/Permission/UserRole/Role -> 批量 __in 预取
- guanli / zuzhang 杜次分红 4.2/4.3: 循环内 update_or_create + 单条 delete -> bulk_create + bulk_update + 批量 delete
- admin_config QQ 群配置: 循环内 exists/first/save/create -> 批量预取 + bulk_create + bulk_update
- jituan 服务层多处合并统计查询、批量预取 map
- rank 多处循环 N+1 改批量预取
- backend 多处循环内 count/create 改批量
- config/orders/merchant_ops 多处循环 N+1 改批量预取
其他改动:
- users/views/kefu.py 拆分为 kefu_base/kefu_dashou/kefu_orders/kefu_punishment/kefu_withdraw 5 个文件
- 删除遗留脚本 check_prod_uid.py / create_rbac_tables.sql
|
2026-07-05 23:17:38 +08:00 |
|
XingQue
|
37bc8f960a
|
feat: 总会员(包含式)模型、迁移、抢单校验与后台配置
- Huiyuan.is_bundle + club_huiyuan_bundle_include 表
- 购买/到期逻辑不变,抢单时总会员覆盖子会员类型
- dshyhq/clumber 返回 is_bundle 与 included_huiyuan_ids
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-07-05 18:12:57 +08:00 |
|
|
|
c5ae30507b
|
进行了完整的视图拆分,同步了 merchant_ops 的修改
|
2026-07-05 10:01:09 +08:00 |
|