From b06bccd277d5dde484ab3233fdce83e733ecb2f5 Mon Sep 17 00:00:00 2001 From: richboo111 Date: Thu, 28 Jul 2022 17:05:04 +0800 Subject: [PATCH] pay log --- business/jxstore/cms/order.go | 2 ++ business/jxstore/financial/bill.go | 1 + 2 files changed, 3 insertions(+) diff --git a/business/jxstore/cms/order.go b/business/jxstore/cms/order.go index 95fdb9ac1..1fcfef313 100644 --- a/business/jxstore/cms/order.go +++ b/business/jxstore/cms/order.go @@ -138,6 +138,7 @@ func PayByBalance(ctx *jxcontext.Context, orderID string, restPrice, payType int if err != nil { return "获取订单信息失败", err } + globals.SugarLogger.Debug("orderInfo.OrderType===============", orderInfo.OrderType) //获取用户 会员账户信息 globals.SugarLogger.Debug("开始获取会员信息") userBill, err := dao.GetUserBill(db, orderInfo.UserID, "") @@ -185,6 +186,7 @@ func PayByBalance(ctx *jxcontext.Context, orderID string, restPrice, payType int } //增加一条用户账单 globals.SugarLogger.Debug("开始创建用户账单") + globals.SugarLogger.Debug("微信需支付", orderInfo.PayPrice) if err = financial.AddBillExpend(txDB, userBill.BillID, model.BillTypePayByAccountBalance, orderInfo.PayPrice, 0); err != nil { globals.SugarLogger.Debug("创建账单失败") dao.Rollback(db, txDB) diff --git a/business/jxstore/financial/bill.go b/business/jxstore/financial/bill.go index 6f6b9cdae..adaccf802 100644 --- a/business/jxstore/financial/bill.go +++ b/business/jxstore/financial/bill.go @@ -29,6 +29,7 @@ func AddBillExpend(txDB orm.TxOrmer, billID int64, billType, expendPrice, jobID ExpendPrice: expendPrice, JobID: jobID, } + globals.SugarLogger.Debug("开始添加账单进数据库", billExpend.BillID) dao.WrapAddIDCULEntity(billExpend, jxcontext.AdminCtx.GetUserName()) return dao.CreateEntityTx(txDB, billExpend) }