From 37143f17fae5514ac057bce171186541505c3094 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=AD=90=E9=93=AD?= Date: Thu, 20 Mar 2025 17:11:48 +0800 Subject: [PATCH] =?UTF-8?q?db=20fail=20=E5=BD=93=E5=89=8D=E6=89=93?= =?UTF-8?q?=E5=BC=80=E8=BF=9E=E6=8E=A5=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/biz/cron_notice.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/biz/cron_notice.go b/internal/biz/cron_notice.go index 9ba20ae..088de0a 100644 --- a/internal/biz/cron_notice.go +++ b/internal/biz/cron_notice.go @@ -117,10 +117,6 @@ func (v *VoucherBiz) notice(ctx context.Context, order *bo.OrderBo) error { return nil } - if err = v.UpdateOrderStatus(ctx, order.ID, status); err != nil { - return err - } - event, err := status.GetOrderNotifyEvent() if err != nil { return err @@ -134,7 +130,11 @@ func (v *VoucherBiz) notice(ctx context.Context, order *bo.OrderBo) error { Type: order.Type, } - return v.cmbNotice(ctx, order, orderNotify) + if err := v.cmbNotice(ctx, order, orderNotify); err != nil { + return err + } + + return v.UpdateOrderStatus(ctx, order.ID, status) } func (v *VoucherBiz) cmbNotice(ctx context.Context, order *bo.OrderBo, orderNotify *bo.OrderNotifyBo) error {