示例#1
0
        public string Auth(HttpContext context)
        {
            string returnUrl = context.Request["return_url"];

            if (returnUrl == "")
            {
                return("mission parmeter return_url");
            }

            string authProcUrl = WeixinHelper.GetAuthProcUrl(returnUrl);
            string authUrl     = OAuth.GetAuthorizeUrl(Variables.AppId, authProcUrl,
                                                       "OK", OAuthScope.snsapi_base, "code");

            //authUrl = authProcUrl;
            context.Response.Redirect(authUrl, true);
            return("");
        }