|
@@ -120,10 +120,12 @@ func fbShare(eg *xorm.Engine, dbName string, payMethod int, total float64, payOi |
|
|
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) |
|
|
|
|
|
total = float64(int64((total-fee)*100)) / 100 |
|
|
|
|
|
|
|
|
var tmp = model.YibaoShareMoney{ |
|
|
var tmp = model.YibaoShareMoney{ |
|
|
Oid: utils.OrderUUID(uid), |
|
|
Oid: utils.OrderUUID(uid), |
|
|
PayOid: payOid, |
|
|
PayOid: payOid, |
|
|
StoreMoney: utils.Float64ToStr(total - total*allBili), |
|
|
|
|
|
|
|
|
StoreMoney: utils.Float64ToStr(total), |
|
|
ZhiyingMoney: utils.Float64ToStr(fee), |
|
|
ZhiyingMoney: utils.Float64ToStr(fee), |
|
|
Platform: "mall", |
|
|
Platform: "mall", |
|
|
PayMethod: utils.IntToStr(payMethod), |
|
|
PayMethod: utils.IntToStr(payMethod), |
|
@@ -170,7 +172,7 @@ func fbShare(eg *xorm.Engine, dbName string, payMethod int, total float64, payOi |
|
|
{ |
|
|
{ |
|
|
"account_id": "", |
|
|
"account_id": "", |
|
|
"account_type": "2", |
|
|
"account_type": "2", |
|
|
"share_amount": total - fee, |
|
|
|
|
|
|
|
|
"share_amount": total, |
|
|
"remark": "商户分账", |
|
|
"remark": "商户分账", |
|
|
}, |
|
|
}, |
|
|
} |
|
|
} |
|
|