zhuyifan

fix(payment): 修复支付回调中的时间格式转换问题

......@@ -57,7 +57,6 @@ import java.text.ParseException;
import java.time.Instant;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.ZoneOffset;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
......@@ -209,10 +208,12 @@ public class PayServiceClient {
log.info("callback updateClientCustomerOrder result: {}", updateResponse.getIsUpdated());
if (updateResponse.getIsUpdated()) {
String createdAt = Instant.ofEpochMilli(orderById.getCreatedAt())
.atZone(ZoneOffset.UTC)
.atZone(DateUtil.CHINA_ZONE)
.minusHours(8)
.format(DateUtil.Y_M_D_H_M_S);
String payTimed = Instant.ofEpochMilli(orderById.getPayTime())
.atZone(ZoneOffset.UTC)
.atZone(DateUtil.CHINA_ZONE)
.minusHours(8)
.format(DateUtil.Y_M_D_H_M_S);
final var orderPaymentSuccessData =
OrderPaymentSuccessData.builder()
......@@ -350,7 +351,8 @@ public class PayServiceClient {
// 构建paycontent
String payTime = Instant.ofEpochMilli(orderById.getPayTime())
.atZone(ZoneOffset.UTC)
.atZone(DateUtil.CHINA_ZONE)
.minusHours(8)
.format(DateUtil.YMDHMS);
BigDecimal price =
......