From aca48f84d91b164622d01ab0a924b8162c39ed9f Mon Sep 17 00:00:00 2001 From: gong <1157756119@qq.com> Date: Thu, 15 Jan 2026 15:17:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E6=94=AF=E4=BB=98=E5=9B=9E?= =?UTF-8?q?=E8=B0=83=E6=97=A5=E6=9C=9F=E6=A0=BC=E5=BC=8F=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/czg/dto/req/WechatPayNotifyDataDto.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cash-sdk/aggregation-pay/src/main/java/com/czg/dto/req/WechatPayNotifyDataDto.java b/cash-sdk/aggregation-pay/src/main/java/com/czg/dto/req/WechatPayNotifyDataDto.java index c339961af..44a5576c3 100644 --- a/cash-sdk/aggregation-pay/src/main/java/com/czg/dto/req/WechatPayNotifyDataDto.java +++ b/cash-sdk/aggregation-pay/src/main/java/com/czg/dto/req/WechatPayNotifyDataDto.java @@ -5,6 +5,9 @@ import com.czg.PayCst; import com.czg.pay.PayNotifyRespDTO; import lombok.Data; +import java.time.ZonedDateTime; +import java.time.format.DateTimeFormatter; + /** * @author yjjie * @date 2025/12/23 22:21 @@ -119,13 +122,16 @@ public class WechatPayNotifyDataDto { } public PayNotifyRespDTO convertToPayNotifyRespDTO() { + ZonedDateTime zonedDateTime = ZonedDateTime.parse(successTime); + DateTimeFormatter outputFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"); + String time = zonedDateTime.format(outputFormatter); PayNotifyRespDTO respDTO = new PayNotifyRespDTO() .setMchOrderNo(outTradeNo) .setThirdOrderNo(transactionId) .setAmount(getPayAmount()) .setPlatform(PayCst.Platform.WECHAT) .setExtData(attach) - .setPaySuccessTime(successTime) + .setPaySuccessTime(time) .setErrorMsg(tradeStateDesc); switch (tradeState) {