|
|
@@ -184,11 +184,11 @@ func newSendInviterBenefit(wxUser *user_model.WxUser, orderId, source string) {
|
|
|
}
|
|
|
|
|
|
if benefitWxUser != nil {
|
|
|
- //发放群主收益,群主代金券余额 > 大于订单金额,则全额发放佣金,否则发放佣金
|
|
|
+ //发放群主收益,群主代金券余额 > 大于订单实付金额-运费,则全额发放佣金,否则发放佣金
|
|
|
count := int64(0)
|
|
|
balance_total := balance_model.GetUserTotalBalance(benefitWxUser.Id)
|
|
|
- if balance_total >= productOrder.PaiedPrice {
|
|
|
- count = productOrder.PaiedPrice
|
|
|
+ if balance_total >= productOrder.PaiedPrice-productOrder.Freight {
|
|
|
+ count = productOrder.PaiedPrice - productOrder.Freight
|
|
|
}
|
|
|
beego.BeeLogger.Warn("count %d", count)
|
|
|
if count > 0 {
|