政企超链接开始集成
This commit is contained in:
+12
-1
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user