diff --git a/business/q_bida/q_bida_server.go b/business/q_bida/q_bida_server.go index 8d1cc735e..ffd637693 100644 --- a/business/q_bida/q_bida_server.go +++ b/business/q_bida/q_bida_server.go @@ -204,7 +204,8 @@ func CancelWayOrder(ctx *jxcontext.Context, userId string, param *bida.CancelOrd globals.SugarLogger.Debug("param.order_no==================", param.OrderNo) order, err := dao.GetUserVendorOrder(db, userId, param.OrderNo) if err != nil { - return err + globals.SugarLogger.Debug("errrrrrr===========", err) + //return err } //order := &model.UserVendorOrder{UserId: userId, LocalWayBill: param.OrderNo} //if err := dao.GetEntity(dao.GetDB(), order, "UserId", "LocalWayBill"); err != nil { @@ -217,7 +218,7 @@ func CancelWayOrder(ctx *jxcontext.Context, userId string, param *bida.CancelOrd } // 待支付或者支付失败 - globals.SugarLogger.Debug("order.order_status======================", order.OrderStatus) + globals.SugarLogger.Debugf("order.order_status====================== %d", order.OrderStatus) switch order.OrderStatus { case model.OrderStatusFailPay, model.OrderStatusWaitPay: // 待支付订单,或者支付失败订单,不需要退款,取消本地订单以及order记录表 db := dao.GetDB()