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)
|
||||
}
|
||||
// 暂时考虑余额支付渠道,加载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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user