abiao пре 3 година
родитељ
комит
77d4cd41f3

+ 2 - 1
go/gopath/src/fohow.com/apps/controllers/pay_controller/pay_exchange_controller.go

@@ -270,6 +270,7 @@ func (self *PayController) payExchange(oId, payWay, returnUrl, source, remark st
 						singleDis := (float64(product.Price) - float64(product.Pv)*(float64(paiedSilver)/float64(total_silver))) / float64(product.Price)
 						totalDis += float64(product.Pv) * float64(singleDis) * float64(item.Count)
 					}
+					beego.BeeLogger.Error("totalDis error:%f", totalDis)
 					dis_amount += int64(math.Floor(totalDis + 0.5))
 				}
 			}
@@ -308,7 +309,7 @@ func (self *PayController) payExchange(oId, payWay, returnUrl, source, remark st
 			}
 		}
 
-		if total_weixin > 0 {
+		if total_weixin > int64(0) {
 			needWx = true
 		}
 		order.Freight = freight