| | |
| | | item["price"] = (*ele).price; |
| | | item["limitMoney"] = (*ele).limitMoney; |
| | | item["limitMoneyUnit"] = (*ele).limitMoneyUnit; |
| | | item["limitUpPercent"] = (*ele).limitUpPercent; |
| | | item["code"] = (*ele).code; |
| | | data[index++] = item; |
| | | } |
| | |
| | | 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); |
| | | } |