From 46e6e8f450564cbb255663715bfedd77ed6cf928 Mon Sep 17 00:00:00 2001 From: ziming Date: Wed, 9 Apr 2025 14:03:39 +0800 Subject: [PATCH] =?UTF-8?q?TransDate=20=E6=A0=B8=E9=94=80=E6=97=B6?= =?UTF-8?q?=E9=97=B4/=E5=BD=93=E5=89=8D=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/biz/cmb/notify.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/internal/biz/cmb/notify.go b/internal/biz/cmb/notify.go index 31b41d4..5c6f259 100644 --- a/internal/biz/cmb/notify.go +++ b/internal/biz/cmb/notify.go @@ -65,12 +65,18 @@ func (v *Cmb) bizContent(_ context.Context, order *bo.OrderBo, orderNotify *bo.O req := &v1.CmbNotifyRequest{ Ticket: orderNotify.OrderNo, Status: cmbStatus.GetValue(), - TransDate: time.Now().Format("2006-01-02 15:04:05.000"), // 格式yyyy-mm-dd hh:mm:ss.sss + TransDate: "", // 格式yyyy-mm-dd hh:mm:ss.sss OrgNo: v.bc.Cmb.OrgNo, Attach: order.Attach, Ext: "", } + if cmbStatus == vo.CmbStatusUse { + req.TransDate = order.LastUseTime.Format("2006-01-02 15:04:05.000") + } else { + req.TransDate = time.Now().Format("2006-01-02 15:04:05.000") + } + bizJsonBytes, err := json.Marshal(req) if err != nil { return "", err