Exemple #1
0
        /// <summary>
        /// 获取json中的用户信息
        /// </summary>
        /// <param name="json"></param>
        private void GetUserInformation(string json)
        {
            JObject obj    = JObject.Parse(json);
            JToken  tocken = obj.SelectToken("initialState.entities.users.['" + url_token + "']");

            RedisManage.PushUserInfo(tocken.ToString());
        }
Exemple #2
0
        //获取json中的用户信息
        private void  GetUserInformation(string json)
        {
            JObject obj    = JObject.Parse(json);
            string  xpath  = "['" + url_token + "']";
            JToken  tocken = obj.SelectToken("['entities']").SelectToken("['users']").SelectToken(xpath);

            RedisManage.PushUserInfo(tocken.ToString());
        }