Exemplo n.º 1
0
        public IHttpActionResult GetWxUser(string openid)
        {
            var res = new ResponseBase();

            try
            {
                dynamic wxuser = new ExpandoObject();
                wxuser.openid = openid;

                var service = new WxService();
                var data    = service.GetUserTest(wxuser);

                res.resData = data;
            }
            catch (Exception ex)
            {
                res.code = "100";
                res.msg  = ex.Message;
            }
            return(Ok(res));
        }