From a7f8afb2e5d3ec29bc2e4365efe037d0c0236526 Mon Sep 17 00:00:00 2001 From: zhangqinbin <181961702@qq.com> Date: Thu, 8 Apr 2021 15:50:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=B6=E9=97=B4=E6=88=B3=E6=9C=8D=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ebtp/extend/timeService/tsa/TtsAgent.java | 30 ------------------- 1 file changed, 30 deletions(-) diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/timeService/tsa/TtsAgent.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/timeService/tsa/TtsAgent.java index a7248ff..b4b6e1c 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/timeService/tsa/TtsAgent.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/timeService/tsa/TtsAgent.java @@ -66,10 +66,6 @@ public interface TtsAgent { public class TtsParseResult { // 时间 private String timestamp; - // 时间 - private Date datestamp; - // 时间 - private LocalDateTime localDateTimestamp; // hash 值 private String hash; @@ -82,14 +78,6 @@ public interface TtsAgent { this.timestamp = timestamp; this.hash = hash; this.cert = cert; - DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"); - this.localDateTimestamp =LocalDateTime.parse(timestamp,dtf); - SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); - try { - this.datestamp = sdf.parse(timestamp); - } catch (ParseException e) { - e.printStackTrace(); - } } public String getTimestamp() { @@ -115,23 +103,5 @@ public interface TtsAgent { public void setCert(String cert) { this.cert = cert; } - - public LocalDateTime getLocalDateTimestamp() { - return localDateTimestamp; - } - - public TtsParseResult setLocalDateTimestamp(LocalDateTime localDateTimestamp) { - this.localDateTimestamp = localDateTimestamp; - return this; - } - - public Date getDatestamp() { - return datestamp; - } - - public TtsParseResult setDatestamp(Date datestamp) { - this.datestamp = datestamp; - return this; - } } } \ No newline at end of file