mock use
This commit is contained in:
parent
9c0b5b5c31
commit
de9f99e62b
|
|
@ -30,6 +30,8 @@ func (v *VoucherBiz) WechatNotifyConsumer(ctx context.Context, tag string, req *
|
||||||
|
|
||||||
} else if req.PlainText.Status.IsUsed() {
|
} else if req.PlainText.Status.IsUsed() {
|
||||||
|
|
||||||
|
_ = v.wxToBBUse(ctx, order, req)
|
||||||
|
|
||||||
if err = v.used(ctx, order); err != nil {
|
if err = v.used(ctx, order); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
@ -58,8 +60,6 @@ func (v *VoucherBiz) useLog(ctx context.Context, order *bo.OrderBo, req *bo.Wech
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_ = v.wxToBBUse(ctx, order, req)
|
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue