mirror of
https://github.com/Weasley-J/chinaport-data-signature.git
synced 2024-04-21 12:41:53 +00:00
- 加签接口文件重命名
- [读卡器底层库]复位读卡器失败会自动重启u-key的Windows进程,希望能提升自我容灾机制
This commit is contained in:
@@ -76,3 +76,4 @@ hs_err_pid*
|
||||
!**/src/main/resources/*-lwj.yml
|
||||
!**/src/main/resources/*-*lwj.yml
|
||||
!**/src/main/resources/*-lwj*.yml
|
||||
/.fastRequest/
|
||||
|
||||
@@ -5,13 +5,13 @@
|
||||
<parent>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-parent</artifactId>
|
||||
<version>3.0.0-M3</version>
|
||||
<version>3.1.0</version>
|
||||
<relativePath/> <!-- lookup parent from repository -->
|
||||
</parent>
|
||||
|
||||
<groupId>cn.gov.chinaport</groupId>
|
||||
<artifactId>chinaport-data-signature</artifactId>
|
||||
<version>1.0.8</version>
|
||||
<version>1.0.9</version>
|
||||
<name>chinaport-data-signature</name>
|
||||
<url>https://github.com/Weasley-J/chinaport-data-signature.git</url>
|
||||
|
||||
@@ -25,10 +25,10 @@
|
||||
<java.version>17</java.version>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||
<spring-cloud.version>2022.0.0-M1</spring-cloud.version>
|
||||
<spring-cloud.version>2022.0.3</spring-cloud.version>
|
||||
<maven-compiler-plugin.version>3.10.1</maven-compiler-plugin.version>
|
||||
<maven-source-plugin.version>3.2.1</maven-source-plugin.version>
|
||||
<hutool-all.version>5.8.10</hutool-all.version>
|
||||
<hutool-all.version>5.8.18</hutool-all.version>
|
||||
<smart-doc.version>2.3.7</smart-doc.version>
|
||||
<xmlsec.version>3.0.1</xmlsec.version>
|
||||
<jna.version>3.0.9</jna.version>
|
||||
@@ -242,26 +242,4 @@
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>spring-milestones</id>
|
||||
<name>Spring Milestones</name>
|
||||
<url>https://repo.spring.io/milestone</url>
|
||||
<snapshots>
|
||||
<enabled>false</enabled>
|
||||
</snapshots>
|
||||
</repository>
|
||||
</repositories>
|
||||
|
||||
<pluginRepositories>
|
||||
<pluginRepository>
|
||||
<id>spring-milestones</id>
|
||||
<name>Spring Milestones</name>
|
||||
<url>https://repo.spring.io/milestone</url>
|
||||
<snapshots>
|
||||
<enabled>false</enabled>
|
||||
</snapshots>
|
||||
</pluginRepository>
|
||||
</pluginRepositories>
|
||||
|
||||
</project>
|
||||
|
||||
@@ -102,6 +102,8 @@ public class WebSocketClientHandler extends TextWebSocketHandler {
|
||||
* {"_id":1,"_method":"cus-sec_SpcSignDataAsPEM","_status":"00","_args":{"Result":false,"Data":[],"Error":["[读卡器底层库]复位读卡器失败:错误码=50070","Err:Custom50070"]}}
|
||||
*
|
||||
* @param cause cause
|
||||
* @apiNote [读卡器底层库]复位读卡器失败会自动重启u-key的Windows进程,希望能提升自我容灾机制
|
||||
* @since 2023-06-10
|
||||
*/
|
||||
@Email
|
||||
public void handleFailedToProcessSign(String cause) {
|
||||
@@ -112,10 +114,11 @@ public class WebSocketClientHandler extends TextWebSocketHandler {
|
||||
messageDomain.setCc(StringUtils.split(emailProperties.getCc(), ","));
|
||||
messageDomain.setSentDate(LocalDateTime.now());
|
||||
messageDomain.setSubject("电子口岸u-key加签失败");
|
||||
if (cause.contains("[读卡器底层库]复位读卡器失败"))
|
||||
if (cause.contains("[读卡器底层库]复位读卡器失败")) {
|
||||
messageDomain.setText("电子口岸u-key加签失败,原因:\n" + cause + "\n\n如遇:“[读卡器底层库]复位读卡器失败”等错误,请手动重启加签exe客户端程序");
|
||||
else
|
||||
} else {
|
||||
messageDomain.setText("电子口岸u-key加签失败,原因:\n" + cause);
|
||||
}
|
||||
emailTemplate.send(messageDomain);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user