多笔立减

This commit is contained in:
ziming 2025-08-12 11:24:01 +08:00
parent 0a94a58afa
commit 97a1747424
1 changed files with 4 additions and 4 deletions

View File

@ -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 { func (this *VoucherBiz) notify(ctx context.Context, order *bo.OrderBo) error {
if order.ActivityId == "" {
return nil // 多笔立减活动,不做通知(?不知道有没有核销通知,多笔核销情况未知)
}
return this.cmbNotify(ctx, order.ID) return this.cmbNotify(ctx, order.ID)
} }
@ -127,10 +131,6 @@ func (this *VoucherBiz) cmbNotify(ctx context.Context, orderId uint64) error {
return err return err
} }
if order.ActivityId == "" {
return nil // 多笔立减活动,不做通知(?不知道有没有核销通知,多笔核销情况未知)
}
if orderNotify, err2 := this.Cmb.Notify(ctx, order); err != nil { if orderNotify, err2 := this.Cmb.Notify(ctx, order); err != nil {
if !errPb.IsNeedRetryNotify(err2) { if !errPb.IsNeedRetryNotify(err2) {