|
|
|
@ -50,9 +50,9 @@ export class AppComponent implements OnInit {
|
|
|
|
|
} else {
|
|
|
|
|
// 如果都没有token,重定向到获取token的页面
|
|
|
|
|
console.log("需要获取token,重定向到授权页面");
|
|
|
|
|
window.location.href = "http://famyun.com/callback_test";
|
|
|
|
|
// window.location.href = "http://famyun.com/callback_test";
|
|
|
|
|
// 生产环境使用微信授权
|
|
|
|
|
// window.location.href = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx13bd75fbedf283e5&redirect_uri=http%3A%2F%2Ffamyun.com%2Fcallback&response_type=code&scope=snsapi_base&state=123#wechat_redirect";
|
|
|
|
|
window.location.href = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx13bd75fbedf283e5&redirect_uri=http%3A%2F%2Ffamyun.com%2Fcallback&response_type=code&scope=snsapi_base&state=123#wechat_redirect";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|