TransDate 核销时间/当前时间

This commit is contained in:
ziming 2025-04-09 14:03:39 +08:00
parent ff2d245133
commit 46e6e8f450
1 changed files with 7 additions and 1 deletions

View File

@ -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