public ActionResult Test1()
        {
            var backendbaseUrl = "http://wechat.yey666.com/";
            var apiUrl         = string.Format("{0}wentang/api/GetCustomInfoByUnionId", backendbaseUrl);

            var lst = new List <KeyValuePair <string, string> >();

            lst.Add(new KeyValuePair <string, string>("unionId", "oa3JPwfY2EN74E6URmNMR_woHdiY"));

            var result = CommonWebService.PostInBackend(CommonWebService.GetParas(lst), apiUrl);

            var jsonResult = JsonConvert.DeserializeObject(result);

            return(Json(new { test = jsonResult }, JsonRequestBehavior.AllowGet));
        }
        public ActionResult Test()
        {
            string name           = string.Empty;
            var    backendbaseUrl = "http://wechat.yey666.com/";
            var    apiUrl         = string.Format("{0}wentang/api/GetUnionIdByOpenId", backendbaseUrl);

            var lst = new List <KeyValuePair <string, string> >();

            lst.Add(new KeyValuePair <string, string>("openId", "oa3JPwfY2EN74E6URmNMR_woHdiY"));

            var result = CommonWebService.PostInBackend(CommonWebService.GetParas(lst), apiUrl);

            if (result.Status == 200)
            {
                name = result.UnionId.Value;
            }
            return(Json(new { name = name }, JsonRequestBehavior.AllowGet));
        }