多笔立减
This commit is contained in:
parent
0a94a58afa
commit
97a1747424
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue