Files
dvcp_v2_wxcp_app/public/oauth.html
2024-10-31 14:34:57 +08:00

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>