瀏覽代碼

更新

order_share_money
huangjiajun 1 月之前
父節點
當前提交
d295c7e646
共有 1 個檔案被更改,包括 4 行新增2 行删除
  1. +4
    -2
      consume/yibao_order_share_money_mall.go

+ 4
- 2
consume/yibao_order_share_money_mall.go 查看文件

@@ -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…
取消
儲存