about 4 years ago
開全圖鑑+全亮
        //AppearedMonster
        // Create by Happy
        //==============================
        if (oSession.uriContains("/api/user/login?"))
        {
            //==============================
            try
            {
                oJobject = JObject.Parse(oBody);
            }
            catch(e)
            {
                ParseStatus = 1; 
                oJobject = null; 
            }
            if(oJobject["user"]["appearedMonsterIds"])
            {
                var userdata = JObject(oJobject["user"]);
                var appearedMonsterIdsdata = new JArray();
                for (var Count1:int =0;Count1<=9999;Count1++)
                {
                    appearedMonsterIdsdata.Add(new JValue(Count1));
                }
                userdata.Remove("appearedMonsterIds"); 
                userdata.Add("appearedMonsterIds",appearedMonsterIdsdata);
                appearedMonsterIdsdata = null;
                userdata = null;
            }
            oBody=oJobject.ToString();
        }
            //collectedMonster
            //==============================
        
        if (oSession.uriContains("/api/user/login?"))
        {
            //==============================
            try
            {
                oJobject = JObject.Parse(oBody);
            }
            catch(e)
            {
                ParseStatus = 1; 
                oJobject = null; 
            }
            if(oJobject["user"]["collectedMonsterIds"])
            {
                var userdata = JObject(oJobject["user"]);
                var collectedMonsterIdsdata = new JArray();
                for (var Count2:int =0;Count2<=9999;Count2++)
                {
                    collectedMonsterIdsdata.Add(new JValue(Count2));
                }
                userdata.Remove("collectedMonsterIds"); 
                userdata.Add("collectedMonsterIds",collectedMonsterIdsdata);
                collectedMonsterIdsdata = null;
                userdata = null;
            }
            oBody=oJobject.ToString();
        }
            //==============================

補充: Newtonsoft.Json

← IL.net__Assembly 轉換表
 
comments powered by Disqus