This commit is contained in:
richboo111
2022-07-27 15:04:10 +08:00
parent 49a0132967
commit 610187ad44

View File

@@ -250,10 +250,14 @@ func CancelWayOrder(ctx *jxcontext.Context, userId string, param *bida.CancelOrd
globals.SugarLogger.Debug("err==========================", err) globals.SugarLogger.Debug("err==========================", err)
} }
// 暂时考虑余额支付渠道加载order表判断支付渠道方式 // 暂时考虑余额支付渠道加载order表判断支付渠道方式
orderWay := &model.Order{OrderID: param.OrderNo, UserID: userId} orderWay, err := dao.GetOrderByID(db, param.OrderNo)
if err := dao.GetEntity(dao.GetDB(), orderWay, "OrderID", "UserID"); err != nil { if err != nil {
return err 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("============", orderWay.PayPrice)
globals.SugarLogger.Debug("========= dfedfwfwdsw", orderWay.PayMethod) globals.SugarLogger.Debug("========= dfedfwfwdsw", orderWay.PayMethod)
if orderWay.PayMethod == 1 { // 余额支付 if orderWay.PayMethod == 1 { // 余额支付
@@ -265,7 +269,6 @@ func CancelWayOrder(ctx *jxcontext.Context, userId string, param *bida.CancelOrd
} }
} }
return nil return nil
} }