Merge branch 'master-时间戳' into 'uat'
申请时间戳异常 不提示 See merge request eshop/biz_service_ebtp_extend!122
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user