This commit is contained in:
2026-05-08 06:19:59 -07:00
parent 7d2f98b7c9
commit f946504cb8
12 changed files with 1493 additions and 140 deletions
@@ -58,7 +58,10 @@ func (l *QueryUserAffiliateLogic) QueryUserAffiliate() (resp *types.QueryUserAff
l.Errorf("[QueryUserAffiliate] unmarshal comission log failed: %v", err.Error())
continue
}
sum += content.Amount
// 只统计佣金收入(购买331、续费332),不含提现(336)、退款(333)、调整(335)等
if content.Type == log.CommissionTypePurchase || content.Type == log.CommissionTypeRenewal {
sum += content.Amount
}
}
return &types.QueryUserAffiliateCountResponse{