diff --git a/business/q_bida/q_bida_server.go b/business/q_bida/q_bida_server.go index c598c4d8b..039b42e71 100644 --- a/business/q_bida/q_bida_server.go +++ b/business/q_bida/q_bida_server.go @@ -250,10 +250,14 @@ func CancelWayOrder(ctx *jxcontext.Context, userId string, param *bida.CancelOrd globals.SugarLogger.Debug("err==========================", err) } // 暂时考虑余额支付渠道,加载order表判断支付渠道方式 - orderWay := &model.Order{OrderID: param.OrderNo, UserID: userId} - if err := dao.GetEntity(dao.GetDB(), orderWay, "OrderID", "UserID"); err != nil { + orderWay, err := dao.GetOrderByID(db, param.OrderNo) + if err != nil { return err } + //orderWay := &model.Order{OrderID: param.OrderNo, UserID: userId} + //if err := dao.GetEntity(dao.GetDB(), orderWay, "OrderID", "UserID"); err != nil { + // return err + //} globals.SugarLogger.Debug("============", orderWay.PayPrice) globals.SugarLogger.Debug("========= dfedfwfwdsw", orderWay.PayMethod) if orderWay.PayMethod == 1 { // 余额支付 @@ -265,7 +269,6 @@ func CancelWayOrder(ctx *jxcontext.Context, userId string, param *bida.CancelOrd } } - return nil }