shanshanzhong147
|
a46fb83054
|
新功能(#3): 抽奖 Stage 1 handler 真实业务对接 + 邀请钩子
Closes HIF-3 (阶段 PR B)
PR B:handler 真实业务对接 + 邀请钩子(迭代含 R1 修复)
- 迁移 02157_lottery_grant_ledger:external_ref UNIQUE 作为发奖幂等键
- log.CommissionTypeLottery=339(架构师批准的新常量)
- DispatchRequest.IdempotencyKey(架构师 review 建议第 2 条)
- GrantLedger + LedgerService.Reserve:INSERT ON CONFLICT DO NOTHING 幂等 upsert
- VPNDurationHandler:ResolveEffectiveUser 归位家庭 owner + UpdateSubscribe,ExpireTime 三分支对齐 grantGiftDays
- CommissionHandler:UpdateCommission + WriteCommissionLog(339),发给中奖者本人,不做家庭组归位
- Handler 从 model 层迁到 logic 层(避免 model → logic 反向依赖);noop 保留在 model 层
- InviteHook:fire-and-forget 独立 goroutine + 10s timeout,扫 running 活动的 invite_success 源
- ServiceContext 新增 LotteryChance / LotteryLedger / LotteryInviteHook
- activateOrderLogic.handleCommission 两条分支通过 invokeInviteHookIfEligible 助手触发,助手内统一 gate IsNew(架构师 R1 打回后的修复)
架构师 R1 打回:branch B 未按"首次付款激活"gate,续费也会给 referer 发抽奖机会 → 已通过助手函数集中收拢,避免 branch A/B 判断漂移。
测试覆盖率:model 76.5% / handler 73.2% / hook 91.7%;补 4 个回归测试覆盖 IsNew 门槛(含关键的 DoesNotFireOnRenewal)。
线上仍零可见变更:无对外路由,钩子仅在活动 status=running 时生效,Stage 1 全流程无活动记录时 loadRunningActivities 返回空。
|
2026-07-08 21:19:28 -07:00 |
|
shanshanzhong147
|
f9fa4756e9
|
新功能(#41): 提现优化 — 收款方式选择 + 取消提现 + 收款码上传
Build docker and publish / build (20.15.1) (push) Failing after 8m37s
Co-authored-by: multica-agent <github@multica.ai>
|
2026-05-26 08:36:25 -07:00 |
|
shanshanzhong147
|
eba256bdc9
|
merge: sync internal with main
Build docker and publish / build (20.15.1) (push) Failing after 8m22s
Co-authored-by: multica-agent <github@multica.ai>
|
2026-05-25 10:32:06 -07:00 |
|
shanshanzhong147
|
1726a584fa
|
feat: add admin order refund flow
Co-authored-by: multica-agent <github@multica.ai>
|
2026-05-24 17:50:23 -07:00 |
|
shanshanzhong147
|
fd522b6c71
|
path
Build docker and publish / build (20.15.1) (push) Successful in 8m56s
|
2026-05-19 19:35:44 -07:00 |
|
EUForest
|
76ff9a658d
|
Merge branch perfect-panel/master/server into develop
|
2025-12-11 23:53:32 +08:00 |
|
Chang lue Tsen
|
3f5aac239b
|
feat(quota): enhance quota task management with new request structures and processing logic
|
2025-09-10 14:53:48 -04:00 |
|
Chang lue Tsen
|
0199dc7fa2
|
feat(log): add logging for balance, gift amount, and commission adjustments
|
2025-09-05 11:00:19 -04:00 |
|
Chang lue Tsen
|
1d878592ed
|
fix(log): rename OrderId to OrderNo for consistency in balance logging
|
2025-09-05 10:25:19 -04:00 |
|
Chang lue Tsen
|
2f4cc46a38
|
fix(log): correct comment for CommissionTypeRefund to improve clarity
|
2025-09-05 09:51:28 -04:00 |
|
Chang lue Tsen
|
4184a32c0f
|
feat(api): update server total data response to use 'OnlineUsers' and implement daily traffic statistics logging
|
2025-09-01 05:30:05 -04:00 |
|
Chang lue Tsen
|
82fd674ae4
|
feat(api): standardize timestamp field across log structures
|
2025-08-26 14:39:54 -04:00 |
|
Chang lue Tsen
|
9b3cdbbb4f
|
feat(api): add traffic log details filtering and enhance traffic log structures
|
2025-08-26 02:29:25 -04:00 |
|
Chang lue Tsen
|
ad4f3df74e
|
feat(server): implement server management handlers and database schema
|
2025-08-25 14:06:37 -04:00 |
|
Chang lue Tsen
|
d33f4cd1ce
|
feat(traffic): add traffic statistics logging and scheduling
|
2025-08-21 14:11:03 -04:00 |
|
Chang lue Tsen
|
87c771bbd4
|
refactor(log): consolidate logging models and update related logic for improved clarity and functionality
|
2025-08-20 13:36:06 -04:00 |
|
Chang lue Tsen
|
8addcc584b
|
init: 1.0.0
|
2025-04-25 12:08:29 +09:00 |
|