diff --git a/internal/biz/wechat_notify.go b/internal/biz/wechat_notify.go index 489c521..0c3206c 100644 --- a/internal/biz/wechat_notify.go +++ b/internal/biz/wechat_notify.go @@ -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) {