fix: 有返佣路径首单漏发被邀请用户赠天
All checks were successful
Build docker and publish / build (20.15.1) (push) Successful in 5m37s
All checks were successful
Build docker and publish / build (20.15.1) (push) Successful in 5m37s
邀请人有返佣比例时,handleCommission 走佣金路径, 之前完全未调用 grantGiftDays,导致设备首单付费后 被邀请用户拿不到 N 天赠送。 修复:佣金处理完成后,若 IsNew(首单), 额外给被邀请用户调用 grantGiftDays(邀请人不重复赠天, 已通过佣金受益)。 Co-Authored-By: claude-flow <ruv@ruv.net>
This commit is contained in:
parent
23a7a292ef
commit
2c9833df58
@ -689,6 +689,11 @@ func (l *ActivateOrderLogic) handleCommission(ctx context.Context, userInfo *use
|
||||
logger.Field("user_id", referer.Id),
|
||||
)
|
||||
}
|
||||
|
||||
// 有佣金路径:邀请人拿佣金,被邀请用户(首单)拿天数
|
||||
if orderInfo.IsNew {
|
||||
_ = l.grantGiftDays(ctx, userInfo, int(l.svc.Config.Invite.GiftDays), orderInfo.OrderNo, "邀请赠送")
|
||||
}
|
||||
}
|
||||
|
||||
func (l *ActivateOrderLogic) grantGiftDaysToBothParties(ctx context.Context, referee *user.User, orderNo string) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user