|
@@ -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)
|
|
singleDis := (float64(product.Price) - float64(product.Pv)*(float64(paiedSilver)/float64(total_silver))) / float64(product.Price)
|
|
|
totalDis += float64(product.Pv) * float64(singleDis) * float64(item.Count)
|
|
totalDis += float64(product.Pv) * float64(singleDis) * float64(item.Count)
|
|
|
}
|
|
}
|
|
|
|
|
+ beego.BeeLogger.Error("totalDis error:%f", totalDis)
|
|
|
dis_amount += int64(math.Floor(totalDis + 0.5))
|
|
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
|
|
needWx = true
|
|
|
}
|
|
}
|
|
|
order.Freight = freight
|
|
order.Freight = freight
|