待64位动态库及开发包支撑测试

This commit is contained in:
2025-01-21 17:40:05 +08:00
parent 12ae2323f7
commit 6ca1cdce4b
4 changed files with 274 additions and 96 deletions

View File

@@ -20,7 +20,8 @@ public class CardReaderController {
private CardReaderService cardReaderService;
/**
* 连接设备
* 连接设备并读取身份证信息
*
* @return
*/
@GetMapping("connectedDevice")
@@ -34,4 +35,21 @@ public class CardReaderController {
}
}
/**
* 连接设备并读取社保卡信息
*
* @return
*/
@GetMapping("readSocialSecurityCard")
public Result<?> readSocialSecurityCard(@RequestParam(name = "devName") String devName) {
try {
return cardReaderService.readSocialSecurityCard(devName);
} catch (Exception e) {
e.printStackTrace();
log.info("连接设备并读取社保卡信息失败 {}", e.getMessage());
return Result.error("连接设备并读取社保卡信息失败");
}
}
}