NewsBog.cs
上传用户:xhd1221
上传日期:2022-05-28
资源大小:186k
文件大小:1k
源码类别:

外挂编程

开发平台:

C/C++

  1. using System;
  2. using System.Collections;
  3. using Json;
  4. namespace QQWinFarm
  5. {
  6.     public class NewsBog
  7.     {
  8.         public JsonObject FruitPicking = new JsonObject("{}");
  9.         public void AddFruit(string cid,string cname ,string cnum)
  10.         {
  11.             string num = cnum;
  12.             if (num == null) num = "0";
  13.             if (FruitPicking.ContainsKey(cid))
  14.             {
  15.                 JsonObject objjson = FruitPicking.GetJson(cid);
  16.                 objjson["num"] = (Convert.ToInt32(objjson["num"]) + Convert.ToInt32(num)).ToString();
  17.                 FruitPicking[cid] = objjson.ToString();
  18.                 return;
  19.             }
  20.             FruitPicking.Add(cid, "{"name":"" + cname + "","num":" + num + "}");
  21.         }
  22.     }
  23. }