From 97a1747424339294e660142deb534ba5136ac660 Mon Sep 17 00:00:00 2001 From: ziming Date: Tue, 12 Aug 2025 11:24:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=9A=E7=AC=94=E7=AB=8B=E5=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/biz/wechat_notify.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) {