提交 461da3c1 编写于 作者: wangxinxu's avatar wangxinxu

log

上级 6859cd63
流水线 #55621 已失败 于阶段
...@@ -4,10 +4,13 @@ package com.pica.cloud.account.account.server.util; ...@@ -4,10 +4,13 @@ package com.pica.cloud.account.account.server.util;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.pica.cloud.account.account.server.entity.EncryptEntity; import com.pica.cloud.account.account.server.entity.EncryptEntity;
import com.pica.cloud.account.account.server.req.BaseRequest;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
import static org.reflections.Reflections.log;
/** /**
* 加解密工具类 * 加解密工具类
...@@ -55,7 +58,13 @@ public class CryptoUtil { ...@@ -55,7 +58,13 @@ public class CryptoUtil {
//param.put("weChatLoginType", 1); //param.put("weChatLoginType", 1);
//param.put("weChatCode", "071KMzjM1ge35a1oDekM1zptjM1KMzjO"); //param.put("weChatCode", "071KMzjM1ge35a1oDekM1zptjM1KMzjO");
aa(JSON.toJSONString(param)); // aa(JSON.toJSONString(param));
EncryptEntity entity = new EncryptEntity();
entity.setKey("kvxhw2gmsUOG128gBpbvY5gEhdAH7onO2BCtAltxMWHQphiu9w0ug7DhREX4VmcGuN8BPB7y/hqaulGl2q2lXSCyiqr1dDufnzHcMnHupMNcbZaUxhZQuNFWn3Tip9Q6LNIL21y69aPz+OvIMW32RZlWBlVyowlGvdvkHn/wF6c=");
entity.setContent("Qgn4HeLY5YD2ZK/vQW4AFvQPpo509a7/WbBO09tW6AGWinUNqImiPHbDImYZiaCY62bmE334FhUwW2REO5Po78DwnaPatrgjvOH0b+XhSBc=");
BaseRequest request = CryptoUtil.decrypt(entity, BaseRequest.class);
} }
/** /**
...@@ -88,6 +97,7 @@ public class CryptoUtil { ...@@ -88,6 +97,7 @@ public class CryptoUtil {
String content = AESUtil.aesDecrypt(encryptEntity.getContent(),decryptKey); String content = AESUtil.aesDecrypt(encryptEntity.getContent(),decryptKey);
//反序列化成对象 //反序列化成对象
T request = JSONObject.parseObject(content, zClass); T request = JSONObject.parseObject(content, zClass);
log.info("CryptoUtil.decrypt " + JSONObject.toJSONString(request));
return request; return request;
// T request = JSONObject.parseObject(encryptEntity.getContent(), zClass); // T request = JSONObject.parseObject(encryptEntity.getContent(), zClass);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册