예제 #1
0
        public ActionResult Callback(string id, string url)
        {
            if (string.IsNullOrEmpty(id))
            {
                return(View());
            }

            var app = WeChatMpManager.Find(id);

            if (app == null)
            {
                return(View());
            }

            //return Redirect(app.GetRedirectUrl(url, Request["code"], Request["state"]));
            return(Redirect(app.GetRedirectUrl(url, Request.QueryString)));
        }
예제 #2
0
 public ActionResult Refresh()
 {
     WeChatMpManager.Load();
     return(View("List"));
 }