登录提交信息非法请求解析错误则忽略异常

This commit is contained in:
thinkgem
2020-08-12 11:04:27 +08:00
parent c068718fa0
commit 32ce44dac4
3 changed files with 11 additions and 5 deletions

View File

@@ -43,7 +43,11 @@ public class DesUtils {
return "";
}
if ("Base64".equals(secretKey)) {
return EncodeUtils.decodeBase64String(data);
try {
return EncodeUtils.decodeBase64String(data);
}catch (IllegalArgumentException e) {
return "";
}
}
String[] ks = StringUtils.split(secretKey, ",");
if (ks.length >= 3){