orderNotice定时任务
This commit is contained in:
parent
3eaffae096
commit
ccd3157649
|
|
@ -23,21 +23,15 @@ func (v *VoucherBiz) WechatNotifyConsumer(ctx context.Context, tag string, req *
|
||||||
|
|
||||||
if req.PlainText.Status.IsSended() {
|
if req.PlainText.Status.IsSended() {
|
||||||
|
|
||||||
if err = v.available(ctx, order); err != nil {
|
return v.available(ctx, order)
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
} else if req.PlainText.Status.IsUsed() {
|
} else if req.PlainText.Status.IsUsed() {
|
||||||
|
|
||||||
if err = v.used(ctx, order); err != nil {
|
return v.used(ctx, order)
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
} else if req.PlainText.Status.IsExpired() {
|
} else if req.PlainText.Status.IsExpired() {
|
||||||
|
|
||||||
if err = v.expired(ctx, order); err != nil {
|
return v.expired(ctx, order)
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue