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 err = v.available(ctx, order); err != nil {
|
||||
return err
|
||||
}
|
||||
return v.available(ctx, order)
|
||||
|
||||
} else if req.PlainText.Status.IsUsed() {
|
||||
|
||||
if err = v.used(ctx, order); err != nil {
|
||||
return err
|
||||
}
|
||||
return v.used(ctx, order)
|
||||
|
||||
} else if req.PlainText.Status.IsExpired() {
|
||||
|
||||
if err = v.expired(ctx, order); err != nil {
|
||||
return err
|
||||
}
|
||||
return v.expired(ctx, order)
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue