From e951df82c61cc11e6e99ddf62c29a92b049de3db Mon Sep 17 00:00:00 2001 From: richboo111 Date: Wed, 27 Jul 2022 15:17:13 +0800 Subject: [PATCH] log --- business/q_bida/q_bida_server.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/business/q_bida/q_bida_server.go b/business/q_bida/q_bida_server.go index a86478bb1..1e31aaea1 100644 --- a/business/q_bida/q_bida_server.go +++ b/business/q_bida/q_bida_server.go @@ -198,7 +198,10 @@ func CreateWayOrder(ctx *jxcontext.Context, param *model.MakeOrderParamReq, user // CancelWayOrder 取消运单 todo func CancelWayOrder(ctx *jxcontext.Context, userId string, param *bida.CancelOrderReq) error { - var db = dao.GetDB() + var ( + tmp_orderNo:=param.OrderNo + db = dao.GetDB() + ) // 查询订单 globals.SugarLogger.Debug("userid==================", userId) globals.SugarLogger.Debug("param.order_no==================", param.OrderNo) @@ -250,7 +253,7 @@ func CancelWayOrder(ctx *jxcontext.Context, userId string, param *bida.CancelOrd globals.SugarLogger.Debug("err==========================", err) } // 暂时考虑余额支付渠道,加载order表判断支付渠道方式 - orderWay, err := dao.GetOrderByID(db, param.OrderNo) + orderWay, err := dao.GetOrderByID(db, cancelParma.OrderNo) globals.SugarLogger.Debug("============", orderWay.PayPrice) globals.SugarLogger.Debug("========= dfedfwfwdsw", orderWay.PayMethod) if err != nil {