打印日志

This commit is contained in:
xiang2lin 2024-07-05 10:16:07 +08:00
parent e1b993b580
commit 4d7763cea5
1 changed files with 2 additions and 0 deletions

View File

@ -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);