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