Commit Graph

94 Commits

Author SHA1 Message Date
XingQue
1dfb46c38c feat: 多俱乐部后台权限与管理员用户俱乐部分配
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-06 17:59:59 +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
76ea5f8255 fix: 假单管理补全 DATA_SCOPE_ALL 导入
修复 fake-grab-order-list 500 NameError。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-05 22:35:30 +08:00
XingQue
59a6deef73 fix: 菜单种子自动补全假单管理页
检测 product.fake-orders 缺失时自动执行 seed_kefu_menu。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-05 22:32:38 +08:00
XingQue
ddfd3d3ac7 feat: 假单后台管理接口(按俱乐部+商品类型 CRUD)
新增 fake-grab-order-list/manage/avatar 接口,权限 2200a;支持增删改价格介绍头像等;假单展示使用自定义头像。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-05 22:28:13 +08:00
XingQue
2a350a2ec8 feat: 会员充值明细接口与俱乐部一键创建总会员
新增 hy-recharge-records 查询 czjilu 会员单并关联 gsfenhong 分红;hy-bundle-create 支持俱乐部一步创建总会员;会员数据分析页权限改为 3300a。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-05 18:27:48 +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
XingQue
5754a69e0b feat: 打手中心全量可配置图标下发与会员卡片图上传接口
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-05 17:36:31 +08:00
XingQue
aaf0c95925 feat: 会员充值页卡片图与 miniapp 背景图配置 2026-07-05 16:25:42 +08:00
XingQue
c7adec20db fix: 修复添加后台用户 RoleUUID 转换错误并严格校验角色绑定 2026-07-02 16:03:23 +08:00
XingQue
725a1386c3 fix: 完全回滚公告轮播身份校验代码,恢复改前行为
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-02 14:17:26 +08:00
XingQue
593ed1ab09 fix: 公告轮播page_key逻辑与商家充值轮询yonghuid字段 2026-07-02 14:05:38 +08:00
XingQue
d8ac8521d4 公告轮播按用户身份限制 page_key,无身份仅可访问点单相关 2026-07-02 13:05:38 +08:00
XingQue
c21168ad2d 商家罚款增加平台审核:新增状态5、证据图、审核API;审核通过前不影响抢单,提现仍拦截未结案罚单 2026-07-02 01:53:25 +08:00
XingQue
5ef4ff7c91 feat: 排行榜奖励按俱乐部分奖与手动领取
- 新增奖励方案/档位/结算/领取四表与懒结算服务
- 小程序 phbjlxx/phbjllq/phbjlphb 新接口,phbhqsj 零改动
- 后台 phbjhq/phbjbc/phbjjl 与 phbj666 权限菜单

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-01 17:40:56 +08:00
XingQue
e533424de5 feat: 客服后台话术配置接口与会话管理菜单 2026-07-01 12:28:22 +08:00
XingQue
dc71c4f1cb feat: gate withdraw audit and add-balance to group executives only
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-29 01:30:56 +08:00
XingQue
dd9e4afa49 revert: restore gvsdsdk role/permission APIs; keep KefuProfile login fix
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-29 00:02:40 +08:00
XingQue
42cb117a8a fix: kefu permissions use legacy permission table instead of gvsdsdk
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-28 23:59:32 +08:00
XingQue
c336a893a0 fix: merge legacy user_role permissions with gvsdsdk for kefu login 2026-06-28 23:27:24 +08:00
XingQue
218001399c fix: bind kefu role by yonghuid when phone duplicated 2026-06-28 23:18:14 +08:00
XingQue
de91089743 fix: clearer no-perm message with bound roles 2026-06-28 23:11:50 +08:00
XingQue
a45bc150e8 fix: kefu menu builtin fallback when DB empty, fix menu load 2026-06-28 23:03:41 +08:00
XingQue
d7c09e230f fix: menu_access 返回 permission_codes 便于排查无菜单权限 2026-06-28 22:47:57 +08:00
XingQue
2003ee01a5 fix: 俱乐部000001不再展示集团级后台菜单与俱乐部密钥配置
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-28 16:52:25 +08:00
XingQue
5be696db9d fix: repair jituan/urls.py IndentationError on identity_tag import 2026-06-28 00:35:50 +08:00
XingQue
3a1aaa9b61 feat(jituan): 后台按俱乐部添加考核官 khggl-add 2026-06-28 00:32:52 +08:00
XingQue
54f8e23488 fix: separate penalty czjilu from merchant recharge and correct finance stats 2026-06-27 18:50:32 +08:00
XingQue
65477592af fix: 罚单/积分处罚仅归属申请人俱乐部,查询不再按被罚人/订单混入 2026-06-27 18:26:22 +08:00
XingQue
a6d32f848e fix: filter_penalty_qs 合并 Q 条件切片错误 2026-06-27 18:22:07 +08:00
XingQue
ee7867b36f fix: 罚单/积分处罚归属申请人俱乐部;申请锁定分红缴纳按锁定值入账 2026-06-27 18:15:42 +08:00
XingQue
cf0882575e 商家首页图标key分离、商家改昵称接口、抢单列表sj_avatar 2026-06-26 17:08:50 +08:00
XingQue
992f4f4f18 feat: 分俱乐部推广海报背景与二维码生成 2026-06-26 15:52:17 +08:00
XingQue
aaf14264d8 fix: 考试会员判断与打手会员信息同步 2026-06-26 15:16:43 +08:00
XingQue
0b202722e6 fix: 考试bundle错误提示区分未上架 2026-06-26 14:41:03 +08:00
XingQue
1aa8c2dc87 fix: bundle 未开启考试时拒绝拉题 2026-06-26 06:16:37 +08:00
XingQue
85531da9eb feat: 考试权限dsks666、页面内切俱乐部、商品板块仅集团可改 2026-06-26 06:07:52 +08:00
XingQue
34e79aa753 feat: 考试集团一览与商品集团权限边界 2026-06-26 05:57:39 +08:00
XingQue
65c5e6572e feat: 打手接单考试(按俱乐部题库、配置与通过状态) 2026-06-26 05:48:53 +08:00
XingQue
ff5b13e717 fix(jituan): 俱乐部商品类型/考核标签按视图隔离 2026-06-26 05:38:32 +08:00
XingQue
2b9ea6ccec feat(jituan): 俱乐部商品类型/考核标签上架配置与抢单池过滤 2026-06-26 05:15:50 +08:00
XingQue
41fa98e8b7 移除未使用的商家充值图标配置项,优化打手横幅图标说明 2026-06-26 04:37:50 +08:00
XingQue
8884159edc fix: 菜单访问时自动补全 miniapp.assets 种子 2026-06-26 04:20:07 +08:00
XingQue
1e5de2061a fix: 图标仅在上传后下发;注册图标与频道菜单 2026-06-26 04:15:46 +08:00
XingQue
095a8e89e4 fix: 注册 miniapp.assets 菜单权限,修复图标页被重定向到板块配置 2026-06-26 04:07:38 +08:00
XingQue
24949b1cb2 feat: 小程序图标与频道配置 API(按俱乐部) 2026-06-26 04:03:52 +08:00
XingQue
141f17859a fix: 身份标签 color 合并进 texiao_json 2026-06-26 03:26:34 +08:00
XingQue
01d73c5fae fix: 抢单列表身份标签 club 回退与 dashou 称号 2026-06-26 03:17:19 +08:00
XingQue
af2578573c 体验会员拦截审核提现与收款;修复分红0元仍走永久分红 2026-06-26 02:36:24 +08:00
XingQue
f6b99f96a4 fix: 会员永久分红生效,管事/组长分红配置按俱乐部读取 2026-06-26 02:22:44 +08:00