Exemplo n.º 1
0
        public IHttpActionResult GetUserAccount(Guid authid)
        {
            var res = new ResponseBase();

            try
            {
                var service = new WxService();
                var data    = service.GetUserAccount(authid);
                if (data == null)
                {
                    throw new Exception("未找到代理信息");
                }

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