From 423185fbe54d249262346815de8fa9b366942e94 Mon Sep 17 00:00:00 2001 From: richboo111 Date: Wed, 27 Jul 2022 15:38:05 +0800 Subject: [PATCH] log --- business/q_bida/q_bida_server.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/business/q_bida/q_bida_server.go b/business/q_bida/q_bida_server.go index 0fff5fba0..724c25b09 100644 --- a/business/q_bida/q_bida_server.go +++ b/business/q_bida/q_bida_server.go @@ -254,9 +254,10 @@ func CancelWayOrder(ctx *jxcontext.Context, userId string, param *bida.CancelOrd } // 暂时考虑余额支付渠道,加载order表判断支付渠道方式 orderWay, err := dao.GetOrderByID(db, tmp_orderNo) + order1 := *orderWay if err != nil { - globals.SugarLogger.Debug("============", orderWay.PayPrice) - globals.SugarLogger.Debug("========= dfedfwfwdsw", orderWay.PayMethod) + globals.SugarLogger.Debug("============", order1.PayPrice) + globals.SugarLogger.Debug("========= dfedfwfwdsw", order1.PayMethod) return err } //orderWay := &model.Order{OrderID: param.OrderNo, UserID: userId} @@ -264,9 +265,9 @@ func CancelWayOrder(ctx *jxcontext.Context, userId string, param *bida.CancelOrd // return err //} - if orderWay.PayMethod == 1 { // 余额支付 + if order1.PayMethod == 1 { // 余额支付 // 支付方式为余额支付,则需要修改order/userVendorOrder,修改订单状态,给用户账户价钱,生成一个价钱数据 - } else if orderWay.PayMethod == 2 { // 微信支付 + } else if order1.PayMethod == 2 { // 微信支付 // 微信支付原路退款,发起退款申请 _, err := RefundOrderByTL(ctx, orderWay, order, order.OtherWayBill, int(order.ChannelFee*100), "申请退款") return err