|
@@ -116,6 +116,7 @@ func fbShare(eg *xorm.Engine, dbName string, payMethod int, total float64, payOi |
|
|
if fee < 0.01 { |
|
|
if fee < 0.01 { |
|
|
fee = 0 |
|
|
fee = 0 |
|
|
} |
|
|
} |
|
|
|
|
|
fee = float64(int64(fee*100)) / 100 |
|
|
req3 := map[string]string{} |
|
|
req3 := map[string]string{} |
|
|
req3["key"] = utils.SerializeStr(key) |
|
|
req3["key"] = utils.SerializeStr(key) |
|
|
req3["bili"] = utils.Float64ToStr(bili) |
|
|
req3["bili"] = utils.Float64ToStr(bili) |
|
@@ -123,7 +124,7 @@ func fbShare(eg *xorm.Engine, dbName string, payMethod int, total float64, payOi |
|
|
Oid: utils.OrderUUID(uid), |
|
|
Oid: utils.OrderUUID(uid), |
|
|
PayOid: payOid, |
|
|
PayOid: payOid, |
|
|
StoreMoney: utils.Float64ToStr(total - total*allBili), |
|
|
StoreMoney: utils.Float64ToStr(total - total*allBili), |
|
|
ZhiyingMoney: utils.Float64ToStr(total * bili), |
|
|
|
|
|
|
|
|
ZhiyingMoney: utils.Float64ToStr(fee), |
|
|
Platform: "mall", |
|
|
Platform: "mall", |
|
|
PayMethod: utils.IntToStr(payMethod), |
|
|
PayMethod: utils.IntToStr(payMethod), |
|
|
Param: utils.SerializeStr(req3), |
|
|
Param: utils.SerializeStr(req3), |
|
|