Commit ae0ef339 by ddx

解析token异常不影响正常文本展示

parent 3707f3a4
......@@ -75,18 +75,22 @@ public class QueryManager implements IQueryManager {
JSONObject requestParam = new JSONObject();
JSONObject cookie = new JSONObject();
String reqContext = incomeInvoiceApply.getReqContext();
if (StringUtil.isNotEmpty(reqContext)) {
if(reqContext.contains("token")) {
String preReqContext = reqContext.substring(reqContext.indexOf("T1C2K3"));
String cookieContext = EncryptUtil.decryptAesCk(preReqContext.substring(0, preReqContext.indexOf("\\")));
if(StringUtil.isNotEmpty(cookieContext)) {
cookie = JSON.parseObject(cookieContext);
requestParam.put("cookie", cookie.get("cookie"));
requestParam.put("dqdm", incomeInvoiceApply.getZoneCode());
try {
if (StringUtil.isNotEmpty(reqContext)) {
if(reqContext.contains("token")) {
String preReqContext = reqContext.substring(reqContext.indexOf("T1C2K3"));
String cookieContext = EncryptUtil.decryptAesCk(preReqContext.substring(0, preReqContext.indexOf("\\")));
if(StringUtil.isNotEmpty(cookieContext)) {
cookie = JSON.parseObject(cookieContext);
requestParam.put("cookie", cookie.get("cookie"));
requestParam.put("dqdm", incomeInvoiceApply.getZoneCode());
}
}
}
} catch(Exception e) {
e.printStackTrace();
}
JSONObject responseResult = null;
IncomeCompletePeriod incomeCompletePeriod = IncomeCompletePeriod.builder()
.cookie(cookie)
.requestParam(requestParam)
......
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