log
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user