政企超链接开始集成

This commit is contained in:
hoteas
2022-03-06 23:55:14 +08:00
parent b5f6a33f07
commit e200e0a370
6 changed files with 52 additions and 31 deletions
+12 -1
View File
@@ -7,8 +7,19 @@
</head>
<body>
<script>
H.get("http://127.0.0.1:8081/app/user/test")
function run() {
var data={"code":H.getParam("code")}
if(data.code==null){
location.href='https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx2edb802f5c3ae1ae&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>