x
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user