diff --git a/internal/biz/cron_notice.go b/internal/biz/cron_notice.go index 52cd19d..abfe8de 100644 --- a/internal/biz/cron_notice.go +++ b/internal/biz/cron_notice.go @@ -220,11 +220,11 @@ func (v *VoucherBiz) request(ctx context.Context, order *bo.OrderBo, orderNotify return fmt.Errorf("request is nil,orderNo:%s,outBizNo:%s,stockId:%s,err:%s", order.OrderNo, order.OutBizNo, order.BatchNo) } - *notifyNum += 1 - if _, err = v.CmbMixRepo.Request(ctx, request, order.NotifyUrl); err != nil { return fmt.Errorf("orderNo:%s,outBizNo:%s,stockId:%s,err:%s", order.OrderNo, order.OutBizNo, order.BatchNo, err.Error()) } + *notifyNum += 1 + return nil }