Beispiel #1
0
        public IHttpActionResult GetWxUser(string code, string iv, string encryptedData, string sharecode = null)
        {
            var res = new ResponseBase();

            try
            {
                WxHelper wh = new WxHelper();

                dynamic wxuser = wh.GetWxUser(code, iv, encryptedData);

                wxuser.sharecode = sharecode;

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

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