pay log
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user