打印日志
This commit is contained in:
parent
e1b993b580
commit
4d7763cea5
|
@ -256,9 +256,11 @@ public class Cbs8ServiceImpl implements ICbs8Service {
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
private String decryptResBody(String body){
|
private String decryptResBody(String body){
|
||||||
|
logger.info("准备解密银行返回的报文:{}",body);
|
||||||
if (StrUtil.isNotEmpty(body)){
|
if (StrUtil.isNotEmpty(body)){
|
||||||
JsonResultEntity resultEntity = JSONObject.parseObject(body,JsonResultEntity.class);
|
JsonResultEntity resultEntity = JSONObject.parseObject(body,JsonResultEntity.class);
|
||||||
String bodyBase64 = String.valueOf(resultEntity.getAttribute());
|
String bodyBase64 = String.valueOf(resultEntity.getAttribute());
|
||||||
|
logger.info("base64解码后的参数:{}",bodyBase64);
|
||||||
byte[] bodyBytes = Base64.getDecoder().decode(bodyBase64);
|
byte[] bodyBytes = Base64.getDecoder().decode(bodyBase64);
|
||||||
//这里验证一下,如果系统异常 返回的报文没加密
|
//这里验证一下,如果系统异常 返回的报文没加密
|
||||||
String test = new String(bodyBytes);
|
String test = new String(bodyBytes);
|
||||||
|
|
Loading…
Reference in New Issue