NewsBog.cs
资源名称:QQFarm.rar [点击查看]
上传用户:xhd1221
上传日期:2022-05-28
资源大小:186k
文件大小:1k
源码类别:
外挂编程
开发平台:
C/C++
- using System;
- using System.Collections;
- using Json;
- namespace QQWinFarm
- {
- public class NewsBog
- {
- public JsonObject FruitPicking = new JsonObject("{}");
- public void AddFruit(string cid,string cname ,string cnum)
- {
- string num = cnum;
- if (num == null) num = "0";
- if (FruitPicking.ContainsKey(cid))
- {
- JsonObject objjson = FruitPicking.GetJson(cid);
- objjson["num"] = (Convert.ToInt32(objjson["num"]) + Convert.ToInt32(num)).ToString();
- FruitPicking[cid] = objjson.ToString();
- return;
- }
- FruitPicking.Add(cid, "{"name":"" + cname + "","num":" + num + "}");
- }
- }
- }