改造接口

This commit is contained in:
ziming 2026-03-27 17:09:40 +08:00
parent 2c7d2581f7
commit 9f768f037c
1 changed files with 4 additions and 3 deletions

View File

@ -122,16 +122,17 @@ func (this *VoucherBiz) notify(ctx context.Context, order *bo.OrderBo) error {
return nil // 多笔立减活动,不做通知(?不知道有没有核销通知,多笔核销情况未知)
}
return this.cmbNotify(ctx, order.ID)
return this.cmbNotify(ctx, order)
}
func (this *VoucherBiz) cmbNotify(ctx context.Context, orderId uint64) error {
func (this *VoucherBiz) cmbNotify(ctx context.Context, orderReq *bo.OrderBo) error {
order, err := this.OrderRepo.GetByID(ctx, orderId)
order, err := this.OrderRepo.GetByID(ctx, orderReq.ID)
if err != nil {
return err
}
order.LastUseTime = orderReq.LastUseTime
if orderNotify, err2 := this.Cmb.Notify(ctx, order); err != nil {
if !errPb.IsNeedRetryNotify(err2) {