diff --git a/internal/biz/wechat_notify.go b/internal/biz/wechat_notify.go index aebf079..3aa7e79 100644 --- a/internal/biz/wechat_notify.go +++ b/internal/biz/wechat_notify.go @@ -117,6 +117,10 @@ func (this *VoucherBiz) expired(ctx context.Context, order *bo.OrderBo) error { func (this *VoucherBiz) notify(ctx context.Context, order *bo.OrderBo) error { + if order.ActivityId == "" { + return nil // 多笔立减活动,不做通知(?不知道有没有核销通知,多笔核销情况未知) + } + return this.cmbNotify(ctx, order.ID) } @@ -127,10 +131,6 @@ func (this *VoucherBiz) cmbNotify(ctx context.Context, orderId uint64) error { return err } - if order.ActivityId == "" { - return nil // 多笔立减活动,不做通知(?不知道有没有核销通知,多笔核销情况未知) - } - if orderNotify, err2 := this.Cmb.Notify(ctx, order); err != nil { if !errPb.IsNeedRetryNotify(err2) {