Beispiel #1
0
 public WebPageBase()
 {
     //用户未登陆,则跳转到
     if (LoginUser == null)
     {
         string url   = HYRequest.GetUrl();
         string reurl = SiteConfig.Instance().SiteDomain + "login.aspx?reurl=" + url;
         HttpContext.Current.Response.Redirect("https://open.weixin.qq.com/connect/oauth2/authorize?appid=" + SiteConfig.Instance().WxAppId + "&redirect_uri=" + reurl + "&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect");
     }
 }