|
@@ -78,11 +78,11 @@ public class DecryptRequestBodyAdapter extends RequestBodyAdviceAdapter {
|
|
if (Strings.isNotEmpty(s)) {
|
|
if (Strings.isNotEmpty(s)) {
|
|
// 使用AES解密
|
|
// 使用AES解密
|
|
String bodyDec = RsaUtils.decipher(s);
|
|
String bodyDec = RsaUtils.decipher(s);
|
|
- String jsonString = JSONObject.toJSONString(bodyDec);
|
|
|
|
- log.info("解密后请求body:" + jsonString);
|
|
|
|
- if (Strings.isNotEmpty(jsonString)) {
|
|
|
|
|
|
+ //JSONObject jsonObject = JSONObject.parseObject(bodyDec);
|
|
|
|
+ log.info("解密后请求body:" + bodyDec);
|
|
|
|
+ if (Strings.isNotEmpty(bodyDec)) {
|
|
// 使用解密后的数据,构造新的读取流
|
|
// 使用解密后的数据,构造新的读取流
|
|
- InputStream inputStream = new ByteArrayInputStream(jsonString.getBytes(StandardCharsets.UTF_8));
|
|
|
|
|
|
+ InputStream inputStream = new ByteArrayInputStream(bodyDec.getBytes(StandardCharsets.UTF_8));
|
|
return new HttpInputMessage() {
|
|
return new HttpInputMessage() {
|
|
@Override
|
|
@Override
|
|
public HttpHeaders getHeaders() {
|
|
public HttpHeaders getHeaders() {
|