过期不做通知
This commit is contained in:
parent
c556912b1b
commit
d11ff47f0c
|
|
@ -78,7 +78,8 @@ func (v *VoucherBiz) expired(ctx context.Context, order *bo.OrderBo) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
return v.notify(ctx, order)
|
//return v.notify(ctx, order)
|
||||||
|
return nil // 过期不做通知
|
||||||
}
|
}
|
||||||
|
|
||||||
func (v *VoucherBiz) notify(ctx context.Context, order *bo.OrderBo) error {
|
func (v *VoucherBiz) notify(ctx context.Context, order *bo.OrderBo) error {
|
||||||
|
|
|
||||||
|
|
@ -61,6 +61,8 @@ func (v *VoucherBiz) wechatQuery(ctx context.Context, order *bo.OrderBo) error {
|
||||||
|
|
||||||
if status.IsUse() {
|
if status.IsUse() {
|
||||||
return v.used(ctx, order)
|
return v.used(ctx, order)
|
||||||
|
} else if status.IsExpired() {
|
||||||
|
return v.expired(ctx, order)
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue