public static wxopenid GetAslUserSampleInfo(string code) { string url = string.Format(WeiXinConst.AslWeiXin_User_OpenIdUrl, code); wxopenid info = HttpClientHelper.GetResponse <wxopenid>(url); return(info); }
public void ProcessRequest(HttpContext context) { string str = ""; if (context.Request["code"] != null) { try { wxopenid entity = WeiXin.Lib.Core.Helper.WeiXinHelper.GetParkUserSampleInfo(context.Request["code"].ToString()); if (entity != null) { str = JsonConvert.SerializeObject(entity); } } catch (Exception ee) { } } context.Response.ContentType = "text/plain"; context.Response.Write(str); }