|
|
@@ -267,7 +267,12 @@ func (self *PayController) payExchange(oId, payWay, returnUrl, source, remark st
|
|
|
|
|
|
//非赠品计入价格
|
|
|
if !item.Send {
|
|
|
+ beego.BeeLogger.Error("Price error:%d", product.Price)
|
|
|
+ beego.BeeLogger.Error("Pv error:%d", product.Pv)
|
|
|
+
|
|
|
singleDis := (float64(product.Price) - float64(product.Pv)*(float64(paiedSilver)/float64(total_silver))) / float64(product.Price)
|
|
|
+
|
|
|
+ beego.BeeLogger.Error("singleDis error:%f", singleDis)
|
|
|
totalDis += float64(product.Pv) * float64(singleDis) * float64(item.Count)
|
|
|
}
|
|
|
beego.BeeLogger.Error("totalDis error:%f", totalDis)
|