XingQue
|
65dae4f3ab
|
fix: 店铺二维码下载拒绝异常大文件
超过2MB的OSS对象视为路径错误,提示重新生成而非原样返回。
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-07-10 00:04:21 +08:00 |
|
XingQue
|
df49631401
|
fix: 店铺二维码生成与下载接口
使用 stable access_token 并重试;规范化 OSS Key;下载接口返回 JSON 错误便于前端识别。
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-07-09 23:51:00 +08:00 |
|
XingQue
|
fd7bcde9d9
|
fix: 店铺订单接口 PlatformOrderExt 查询字段修正
将 dianpu_id 改为模型字段 ShopID,修复 ddltj/ddlbhq 的 FieldError;统计聚合改用 id__in 匹配 Order 主键。
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-07-09 20:39:05 +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 |
|
|
|
c5ae30507b
|
进行了完整的视图拆分,同步了 merchant_ops 的修改
|
2026-07-05 10:01:09 +08:00 |
|