This commit is contained in:
richboo111
2022-07-29 15:55:13 +08:00
parent e11b4f4611
commit 23165bd5d2
2 changed files with 2 additions and 1 deletions

View File

@@ -99,6 +99,7 @@ func Pay(ctx *jxcontext.Context, orderID string, payType int, vendorPayType, app
return result, fmt.Errorf("未找到此订单!")
}
payHandler.Order = order
globals.SugarLogger.Debug("order.payprice==================", payHandler.Order.PayPrice)
//如果用户没有对应账单信息就给他生成一条
txDB, _ := dao.Begin(db)
defer func() {

View File

@@ -271,7 +271,7 @@ func onTLpayFinished(call *tonglianpayapi.CallBackResult) (err error) {
//充值会员 增加微信支付处理业务
if (order.OrderType == 2 || order.OrderType == 5) && call.TrxStatus == tonglianpayapi.TrxStatusSuccess {
return OnWXPayFinished(order)
} else if order.OrderType == 3 {
} else if order.OrderType == 3 && call.TrxStatus == tonglianpayapi.TrxStatusSuccess {
txdb, _ := dao.Begin(db)
defer func() {
if r := recover(); r != nil {