17 lines
417 B
HTML
17 lines
417 B
HTML
|
|
<!DOCTYPE html>
|
||
|
|
<html lang="en">
|
||
|
|
<head>
|
||
|
|
<meta charset="UTF-8">
|
||
|
|
<title>微信Oauth2.0</title>
|
||
|
|
</head>
|
||
|
|
<body>
|
||
|
|
<script>
|
||
|
|
if (/code=/.test(location.search)) {
|
||
|
|
parent.postMessage(location.href)
|
||
|
|
} else {
|
||
|
|
location.href = `https://open.weixin.qq.com/connect/oauth2/authorize${location.search}&redirect_uri=${location.origin + location.pathname}#wechat_redirect`
|
||
|
|
}
|
||
|
|
</script>
|
||
|
|
</body>
|
||
|
|
</html>
|