Commit a16f7a7a by ddx

置换字符串到cleancookie的md5

parent fd47310c
......@@ -865,7 +865,7 @@ public class TkTokenServiceImpl implements TkTokenService {
try {
String newUserInfo = "";
if(null != cookieReq.getUserInfoJson()) {
newUserInfo = cookieReq.getUserInfoJson().toString();
newUserInfo = JSON.parseObject(JSON.toJSONString(cookieReq.getUserInfoJson()), TaxUserInfo.class).toString();
} else {
String oldUserInfo = cookieReq.getUserInfo();
if (StringUtils.isNotEmpty(oldUserInfo)) {
......
......@@ -239,11 +239,21 @@ public class TokenUnitTest {
param.put("taxno","914404003980391901");
param.put("zoneCode","4400");
param.put("userInfo",Base64Util.encode("刘志怡021323[a%b@q]Lzy672672[a%b@q]"));
// param.put("userInfo",Base64Util.encode("刘志怡021323[a%b@q]Lzy672672[a%b@q]"));
Map userparam = new HashMap<>();
userparam.put("loginType","b");
userparam.put("nsrsbh","91440101MA5CRHH33W");
userparam.put("username","Fanny123456");
userparam.put("userType","办税人");
userparam.put("password","Fanny123456");
param.put("userInfoJson",userparam);
System.out.println(url);
// String ret = HttpHelper.postWithJson(url,JSON.toJSONString(param));
// System.out.println(ret);
String ret = HttpHelper.postWithJson(url,JSON.toJSONString(param));
System.out.println(ret);
}
@Test
......
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