Zuncle 87be56e0c8 fix(task_center): 邀请任务校验被邀请人活动期间消费达标
修复"有效邀请消费门槛(amount_threshold)"配置生效但后端从未判定的缺陷:
此前 invite_count 档位在全局维度仅统计 user_invites 绑定记录,导致
被邀请人零消费也算有效邀请,用户可白嫖邀请奖励。

- countInvites 新增 amountThreshold 参数:门槛>0 时按
  "被邀请人在活动窗口内已支付实付金额累计 >= 门槛" 统计有效邀请,
  消费时间严格限定在活动窗口内(活动期间消费达标,历史消费不计入);
  门槛=0 保持"注册即计"原行为
- GetUserProgress 改为按档位各自的 amount_threshold 独立统计
- matchAndGrantExtended 自动发放路径同步门槛重算(防御性)
- 新增 parseInviteAmountThreshold 辅助函数
2026-06-15 00:21:20 +08:00
x
2026-04-25 02:48:07 +08:00
2026-03-05 12:50:06 +08:00
2026-02-27 17:51:38 +08:00
2026-05-09 01:26:15 +08:00
2026-05-09 01:26:15 +08:00
2026-04-20 15:53:31 +08:00
2026-03-05 12:50:06 +08:00
2026-02-27 00:08:02 +08:00
2026-05-09 01:26:15 +08:00
2026-04-20 15:53:31 +08:00
x
2026-03-21 19:00:28 +08:00
2026-03-05 12:50:06 +08:00
2026-05-09 01:26:15 +08:00
2026-02-18 23:23:34 +08:00
2026-03-21 16:37:24 +08:00
2026-05-09 01:26:15 +08:00
2026-05-09 01:26:15 +08:00
2026-05-09 01:26:15 +08:00

mini-chat

接口文档

服务地址

打包命令

MAC

CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" -tags timetzdata -trimpath -o build/bindbox.exe .

export DOCKER_DEFAULT_PLATFORM=linux/amd64 docker build -t zfc931912343/bindbox-game:v1.10 . docker push zfc931912343/bindbox-game:v1.10

docker pull zfc931912343/bindbox-game:v1.10 &&docker rm -f bindbox-game && docker run -d --name bindbox-game -p 9991:9991 zfc931912343/bindbox-game:v1.10

Description
No description provided
Readme 563 MiB
Languages
Go 97.8%
HTML 1.1%
JavaScript 0.6%
Makefile 0.2%
Shell 0.2%