诸暨麻将添加redis
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 
 
 

55 líneas
1.3 KiB

  1. #pragma once
  2. #include"json.h"
  3. #define JSON_BUSINESS_ERROR_SIZE 10
  4. class Json::Value;
  5. class CJsonBusiness :public Json::Value
  6. {
  7. public:
  8. CJsonBusiness();
  9. ~CJsonBusiness();
  10. CJsonBusiness(WORD x, WORD y) :m_wMainCmd(x), m_wSubCmd(y), m_str(""), m_reader(m_ft) {}
  11. private:
  12. std::string m_str;//俚륜눔 UTF-8긍쯤목駕
  13. WORD m_wMainCmd;//寮츱즈
  14. WORD m_wSubCmd;//綾츱즈
  15. Json::Value m_root;
  16. Json::FastWriter m_fw;
  17. Json::Features m_ft;
  18. Json::Reader m_reader;
  19. public:
  20. /*叫駱꽝鑒*/
  21. bool IsVaildPara(VOID* pData){
  22. return (NULL == pData);
  23. }
  24. /*�零寮-綾츱즈*/
  25. void SetCmdType(WORD x, WORD y)
  26. {
  27. this->m_wMainCmd = x;
  28. this->m_wSubCmd = y;
  29. }
  30. /*삿혤Json俚륜눔UTF-8*/
  31. std::string GetUTF_8JsonStr()
  32. {
  33. return this->m_str;
  34. }
  35. /*눈왕令*/
  36. std::string GetNullJson(VOID* pData);
  37. void Clear();
  38. std::string JsonWriteUTF_8(Json::Value & root);
  39. void Log(std::string str);
  40. void Log(std::string str, const TCHAR* nStr);
  41. // 쇱駱角뤠관벵景喝俚륜
  42. bool checkNumber(std::string str);
  43. //國좔롸權濫섀
  44. std::string GetInfoJson(const DWORD GameID, const TCHAR WanFInfo[68], const std::string strTime, const std::string strMd5, DBR_GR_ClubRecordXianLiao FenXiangRecord);
  45. //헝헹땐데壇댑 //삿혤綠連마땐데죗깊
  46. std::string GetInfoJson(TCHAR* ptr, DWORD size);
  47. };