|
|
@@ -40,7 +40,7 @@ func NewSendInviterBenefit(wxUser *user_model.WxUser, orderId, source string) {
|
|
|
|
|
|
if benefitWxUser != nil {
|
|
|
//发放群主收益,(微信支付金额-运费)>0,按(微信支付金额-运费)*20%给上级代理返佣金
|
|
|
- be_total := float64(productOrder.PaiedPrice-productOrder.Freight) * float64(0.2)
|
|
|
+ be_total := float64(productOrder.PaiedPrice-productOrder.Freight) * float64(sys_config.GetCashAward()/int64(100))
|
|
|
count := int64(math.Floor(be_total + 0.5))
|
|
|
|
|
|
//beego.BeeLogger.Warn("count %d", count)
|