This commit is contained in:
richboo111
2022-07-27 15:17:13 +08:00
parent 35450fed80
commit e951df82c6

View File

@@ -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 {