iedc-go/example/tpt/wx.html
2022-04-20 18:36:05 +08:00

26 lines
651 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>测试</title>
<script type="text/javascript" src="js/hotime.js"></script>
</head>
<body>
<script>
function run() {
var data={"code":H.getParam("code")}
if(data.code==null){
location.href='https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxdcc8d6360661a179&redirect_uri='+location.href+'&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect'
return
}
H.post("app/wechat/code", data, function (res) {
H.upUrl("/wx/");
})
}
run()
</script>
</body>
</html>