BUG修复

This commit is contained in:
dxfeng 2024-01-23 09:54:46 +08:00
parent 79321921fa
commit 007fb077dd
1 changed files with 5 additions and 3 deletions

View File

@ -39,9 +39,11 @@ public class RecruitFlowUtil {
String[] paramPairs = urlString.split("&"); String[] paramPairs = urlString.split("&");
for (String paramPair : paramPairs) { for (String paramPair : paramPairs) {
String[] keyValue = paramPair.split("="); String[] keyValue = paramPair.split("=");
String key = URLDecoder.decode(keyValue[0], "UTF-8"); if (keyValue.length == 2) {
String value = URLDecoder.decode(keyValue[1], "UTF-8"); String key = URLDecoder.decode(keyValue[0], "UTF-8");
params.put(key, value); String value = URLDecoder.decode(keyValue[1], "UTF-8");
params.put(key, value);
}
} }
} }
} catch (Exception e) { } catch (Exception e) {