Skip to content

Commit

Permalink
微信登录签名验证失败的问题解决
Browse files Browse the repository at this point in the history
  • Loading branch information
Airry666 committed Jan 12, 2021
1 parent c8b00b9 commit 961f5b0
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,10 @@ private RequestBody getRequestBody(Map<String, String> map) {
} else if (key.equals("key")) {
continue;
}
builder.add(key, value);
String finalValue = value.replace("+", "%2B")
.replace("\n", "")
.replace("\\s", "");
builder.add(key, finalValue);
}
requestBody = builder.build();
return requestBody;
Expand Down

0 comments on commit 961f5b0

Please sign in to comment.