Commit 2f9837d8 authored by 黎博's avatar 黎博

modify

parent 2453bda9
...@@ -44,10 +44,10 @@ public class XinchengEncryptConvertor implements EncryptConvertor { ...@@ -44,10 +44,10 @@ public class XinchengEncryptConvertor implements EncryptConvertor {
// String requestStr = JSON.toJSONString(requestMap.get("content")); // String requestStr = JSON.toJSONString(requestMap.get("content"));
try { try {
decodeData = new String(RSA.decryptByPublicKey(Base64.decodeBase64(request.getBytes()), xinchengPublicKey), Charsets.UTF_8); decodeData = new String(RSA.decryptByPublicKey(Base64.decodeBase64(request.getBytes()), xinchengPublicKey), Charsets.UTF_8);
log.info("新增解密后的响应结果为:{}", decodeData); log.info("解密后的请求为:{}", decodeData);
} catch (Exception e) { } catch (Exception e) {
log.error("decrypt, decrypt response is error ", e); log.error("decrypt, decrypt response is error ", e);
throw new RuntimeException("解密新橙响应结果失败!"); throw new RuntimeException("解密请求失败!");
} }
return decodeData; return decodeData;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment