Browse Source

更新

order_share_money
huangjiajun 1 month ago
parent
commit
d295c7e646
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      consume/yibao_order_share_money_mall.go

+ 4
- 2
consume/yibao_order_share_money_mall.go View File

@@ -120,10 +120,12 @@ func fbShare(eg *xorm.Engine, dbName string, payMethod int, total float64, payOi
req3 := map[string]string{}
req3["key"] = utils.SerializeStr(key)
req3["bili"] = utils.Float64ToStr(bili)
total = float64(int64((total-fee)*100)) / 100

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


Loading…
Cancel
Save