Skip to content

Commit

Permalink
🐛 解决企业微信授权后,回调地址中原有的参数丢失的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyd-c committed Apr 9, 2021
1 parent fa75568 commit 0f42457
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/me/zhyd/oauth/utils/GlobalAuthUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public static boolean isHttpProtocol(String url) {
if (StringUtils.isEmpty(url)) {
return false;
}
return url.startsWith("http://");
return url.startsWith("http://") || url.startsWith("http%3A%2F%2F");
}

/**
Expand All @@ -162,7 +162,7 @@ public static boolean isHttpsProtocol(String url) {
if (StringUtils.isEmpty(url)) {
return false;
}
return url.startsWith("https://");
return url.startsWith("https://") || url.startsWith("https%3A%2F%2F");
}

/**
Expand Down

0 comments on commit 0f42457

Please sign in to comment.