加log
This commit is contained in:
@@ -45,7 +45,7 @@ public class CallWxpayFaceServiceImpl implements CallWxpayFaceService {
|
||||
reqPointer.setString(0, reqJson);
|
||||
//请求数据长度
|
||||
int reqSize = reqPointer.getString(0).length();
|
||||
System.out.println("-----------调用微信刷脸DLL请求数据----------"+reqPointer.getString(0));
|
||||
log.info("000-----------调用微信刷脸DLL请求数据----------",reqPointer.getString(0));
|
||||
|
||||
//接收响应
|
||||
long[] pRespBuf = new long[1];
|
||||
@@ -62,14 +62,14 @@ public class CallWxpayFaceServiceImpl implements CallWxpayFaceService {
|
||||
byte[] byteArray = pointer.getByteArray(0, respSize[0]);
|
||||
resStr = new String(byteArray, StandardCharsets.UTF_8);
|
||||
|
||||
System.out.println("-----------调用微信刷脸DLL请求结果: " + resStr);
|
||||
log.info("000-----------调用微信刷脸DLL请求结果: " , resStr);
|
||||
dll.wxpayReleaseResponse(new String[2]);
|
||||
//释放 C:\Windows\System32目录下 WxpayFaceSDK.INSTANCE.wxpayReleaseResponse(new String[2]);
|
||||
} else {
|
||||
Pointer pointer = new Pointer(pRespBuf[0]);
|
||||
byte[] byteArray = pointer.getByteArray(0, respSize[0]);
|
||||
resStr = new String(byteArray, StandardCharsets.UTF_8);
|
||||
System.err.println("-----------调用人脸服务失败: " +resStr);
|
||||
log.error("000-----------调用人脸DLL服务失败: " ,resStr);
|
||||
}
|
||||
return resStr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user