admin
2022-09-09 60feedf43a35a9ca69d05095a01c5d1797b1bdc3
app/JsonUtil.h
@@ -105,6 +105,7 @@
         item["price"] = (*ele).price;
         item["limitMoney"] = (*ele).limitMoney;
         item["limitMoneyUnit"] = (*ele).limitMoneyUnit;
         item["limitUpPercent"] = (*ele).limitUpPercent;
         item["code"] = (*ele).code;
         data[index++] = item;
      }
@@ -236,13 +237,15 @@
      return toJsonStr(root);
   }
   static  std::string loadHeartbeatData(int client,string memery,string ownMemery) {
   static  std::string loadHeartbeatData(int client,string memery,string ownMemery,bool thsDead,string thsDeadMsg) {
      Json::Value root;
      root["type"] = 30;
      Json::Value data;
      data["client"] = client;
      data["memery"] = memery;
      data["own_memery"] = ownMemery;
      data["thsDead"] = thsDead;
      data["thsDeadMsg"] = thsDeadMsg;
      root["data"] = data;
      return toJsonStr(root);
   }