This commit is contained in:
richboo111
2022-07-27 15:21:55 +08:00
parent 3a17f3a5bb
commit b12901f0b8

View File

@@ -199,6 +199,7 @@ func CreateWayOrder(ctx *jxcontext.Context, param *model.MakeOrderParamReq, user
// CancelWayOrder 取消运单 todo
func CancelWayOrder(ctx *jxcontext.Context, userId string, param *bida.CancelOrderReq) error {
var (
tmp_orderNo = param.OrderNo
db = dao.GetDB()
)
// 查询订单
@@ -252,10 +253,10 @@ func CancelWayOrder(ctx *jxcontext.Context, userId string, param *bida.CancelOrd
globals.SugarLogger.Debug("err==========================", err)
}
// 暂时考虑余额支付渠道加载order表判断支付渠道方式
orderWay, err := dao.GetOrderByID(db, cancelParma.OrderNo)
orderWay, err := dao.GetOrderByID(db, tmp_orderNo)
if err != nil {
globals.SugarLogger.Debug("============", orderWay.PayPrice)
globals.SugarLogger.Debug("========= dfedfwfwdsw", orderWay.PayMethod)
if err != nil {
return err
}
//orderWay := &model.Order{OrderID: param.OrderNo, UserID: userId}