Kaynağa Gözat

sys config upgrade

abiao 4 yıl önce
ebeveyn
işleme
bae270c071

+ 1 - 1
go/gopath/src/fohow.com/apps/helpers/benefit_helper.go

@@ -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)