1
This commit is contained in:
@@ -230,9 +230,13 @@ func CancelWayOrder(ctx *jxcontext.Context, userId string, param *bida.CancelOrd
|
|||||||
api.QBiDaAPI.CancelOrder(param)
|
api.QBiDaAPI.CancelOrder(param)
|
||||||
// 暂时考虑余额支付渠道,加载order表判断支付渠道方式
|
// 暂时考虑余额支付渠道,加载order表判断支付渠道方式
|
||||||
orderWay := &model.Order{OrderID: param.OrderNo, UserID: userId}
|
orderWay := &model.Order{OrderID: param.OrderNo, UserID: userId}
|
||||||
|
globals.SugarLogger.Debug("=============", param.OrderNo, userId)
|
||||||
if err := dao.GetEntity(dao.GetDB(), orderWay, "OrderID", "UserID"); err != nil {
|
if err := dao.GetEntity(dao.GetDB(), orderWay, "OrderID", "UserID"); err != nil {
|
||||||
|
globals.SugarLogger.Debug("err=============", err)
|
||||||
|
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
globals.SugarLogger.Debug("=============", orderWay)
|
||||||
|
|
||||||
if orderWay.PayMethod == 1 { // 余额支付
|
if orderWay.PayMethod == 1 { // 余额支付
|
||||||
// 支付方式为余额支付,则需要修改order/userVendorOrder,修改订单状态,给用户账户价钱,生成一个价钱数据
|
// 支付方式为余额支付,则需要修改order/userVendorOrder,修改订单状态,给用户账户价钱,生成一个价钱数据
|
||||||
|
|||||||
Reference in New Issue
Block a user