From d87cfa4ddb14caf575978ae2753289bef1d75f7c Mon Sep 17 00:00:00 2001 From: zhangqinbin <181961702@qq.com> Date: Thu, 4 Aug 2022 17:20:57 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=B3=E8=AF=B7=E6=97=B6=E9=97=B4=E6=88=B3?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=20=E4=B8=8D=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../extend/timeService/TimeServiceConstant.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/timeService/TimeServiceConstant.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/timeService/TimeServiceConstant.java index e1ece89..85cd367 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/timeService/TimeServiceConstant.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/timeService/TimeServiceConstant.java @@ -41,7 +41,7 @@ public class TimeServiceConstant { // 获得TSAClient client = (TSAClient) factory.getTSAClient(); } catch (Exception e) { - log.error("读取配置文件或连接时间戳服务器异常", e); + log.error("读取配置文件或连接时间戳服务器异常", e.getMessage()); } } @@ -67,7 +67,7 @@ public class TimeServiceConstant { log.info("timestamp -->" + timestamp); return timestamp; } catch (Exception e) { - log.error("申请时间戳异常", e); + log.error("申请时间戳异常", e.getMessage()); } return ""; } @@ -92,7 +92,7 @@ public class TimeServiceConstant { ttsParseResult = new TtsAgent.TtsParseResult(time, HelperUtil.bytesToHexString(verifyResult.getData()), verifyResult.getSignerSubject()); } catch (Exception e) { - log.error("解析时间戳", e); + log.error("解析时间戳", e.getMessage()); } return ttsParseResult; } @@ -105,7 +105,7 @@ public class TimeServiceConstant { TSAVerifyResult verifyResult = client.verifyTimeStamp(Base64.decodeBase64(timestamp)); return verifyResult; } catch (Exception e) { - log.error("解析时间戳", e); + log.error("解析时间戳", e.getMessage()); } return null; } @@ -127,7 +127,7 @@ public class TimeServiceConstant { String timestamp = this.signTimeStamp(data); ttsParseResult = this.verifyTimeStamp2(timestamp); } catch (Exception e) { - log.error("获取时间戳异常", e); + log.error("获取时间戳异常", e.getMessage()); } return ttsParseResult; } @@ -150,7 +150,7 @@ public class TimeServiceConstant { TSAVerifyResult verifyResult = this.verifyTimeStamp(timestamp); time = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(verifyResult.getSignedTime()); } catch (Exception e) { - log.error("获取时间戳异常", e); + log.error("获取时间戳异常", e.getMessage()); } return time; } @@ -173,7 +173,7 @@ public class TimeServiceConstant { Date date = verifyResult.getSignedTime(); return date; } catch (Exception e) { - log.error("获取时间戳异常", e); + log.error("获取时间戳异常", e.getMessage()); } return new Date(); } @@ -203,7 +203,7 @@ public class TimeServiceConstant { date = verifyResult.getSignedTime(); } catch (Exception e) { - log.error("获取时间戳异常", e); + log.error("获取时间戳异常", e.getMessage()); } SystemTime systemTime = new SystemTime() .setYear(date.getYear() + 1900)