@@ -86,9 +86,8 @@ BOOL CConfig_Json::Config_Json_File(LPCTSTR lpszConfigFile, XENGINE_SERVERCONFIG
8686 pSt_ServerConfig->nCenterPort = st_JsonRoot[" nCenterPort" ].asInt ();
8787 pSt_ServerConfig->nStorageDLPort = st_JsonRoot[" nStorageDLPort" ].asInt ();
8888 pSt_ServerConfig->nStorageUPPort = st_JsonRoot[" nStorageUPPort" ].asInt ();
89- pSt_ServerConfig->nP2XPPort = st_JsonRoot[" nP2XPPort" ].asInt ();
9089
91- if (st_JsonRoot[" XMax" ].empty () || (7 != st_JsonRoot[" XMax" ].size ()))
90+ if (st_JsonRoot[" XMax" ].empty () || (6 != st_JsonRoot[" XMax" ].size ()))
9291 {
9392 Config_IsErrorOccur = TRUE ;
9493 Config_dwErrorCode = ERROR_XENGINE_BLOGIC_CONFIG_JSON_XMAX;
@@ -101,9 +100,8 @@ BOOL CConfig_Json::Config_Json_File(LPCTSTR lpszConfigFile, XENGINE_SERVERCONFIG
101100 pSt_ServerConfig->st_XMax .nCenterThread = st_JsonXMax[" CenterThread" ].asInt ();
102101 pSt_ServerConfig->st_XMax .nStorageUPThread = st_JsonXMax[" nStorageUPThread" ].asInt ();
103102 pSt_ServerConfig->st_XMax .nStorageDLThread = st_JsonXMax[" nStorageDLThread" ].asInt ();
104- pSt_ServerConfig->st_XMax .nP2XPThread = st_JsonXMax[" nP2XPThread" ].asInt ();
105103
106- if (st_JsonRoot[" XTime" ].empty () || (6 != st_JsonRoot[" XTime" ].size ()))
104+ if (st_JsonRoot[" XTime" ].empty () || (5 != st_JsonRoot[" XTime" ].size ()))
107105 {
108106 Config_IsErrorOccur = TRUE ;
109107 Config_dwErrorCode = ERROR_XENGINE_BLOGIC_CONFIG_JSON_XTIME;
@@ -115,7 +113,6 @@ BOOL CConfig_Json::Config_Json_File(LPCTSTR lpszConfigFile, XENGINE_SERVERCONFIG
115113 pSt_ServerConfig->st_XTime .nTimeCheck = st_JsonXTime[" nTimeCheck" ].asInt ();
116114 pSt_ServerConfig->st_XTime .nCenterTimeOut = st_JsonXTime[" nCenterTimeOut" ].asInt ();
117115 pSt_ServerConfig->st_XTime .nStorageTimeOut = st_JsonXTime[" nStorageTimeOut" ].asInt ();
118- pSt_ServerConfig->st_XTime .nP2XPTimeOut = st_JsonXTime[" nP2XPTimeOut" ].asInt ();
119116
120117 if (st_JsonRoot[" XLog" ].empty () || (3 != st_JsonRoot[" XLog" ].size ()))
121118 {
@@ -184,7 +181,7 @@ BOOL CConfig_Json::Config_Json_File(LPCTSTR lpszConfigFile, XENGINE_SERVERCONFIG
184181 pSt_ServerConfig->st_XLimit .nMaxDNLoader = st_JsonXLimit[" nMaxDNLoad" ].asInt64 ();
185182 pSt_ServerConfig->st_XLimit .nMaxUPLoader = st_JsonXLimit[" nMaxUPLoad" ].asInt64 ();
186183
187- if (st_JsonRoot[" XP2xp" ].empty () || (4 != st_JsonRoot[" XP2xp" ].size ()))
184+ if (st_JsonRoot[" XP2xp" ].empty () || (3 != st_JsonRoot[" XP2xp" ].size ()))
188185 {
189186 Config_IsErrorOccur = TRUE ;
190187 Config_dwErrorCode = ERROR_XENGINE_BLOGIC_CONFIG_JSON_P2XP;
@@ -194,7 +191,6 @@ BOOL CConfig_Json::Config_Json_File(LPCTSTR lpszConfigFile, XENGINE_SERVERCONFIG
194191 pSt_ServerConfig->st_P2xp .nTime = st_JsonP2xp[" nTime" ].asInt ();
195192 pSt_ServerConfig->st_P2xp .nRVPort = st_JsonP2xp[" nRVPort" ].asInt ();
196193 pSt_ServerConfig->st_P2xp .nSDPort = st_JsonP2xp[" nSDPort" ].asInt ();
197- _tcscpy (pSt_ServerConfig->st_P2xp .tszQQWryFile , st_JsonP2xp[" tszQQWryFile" ].asCString ());
198194
199195 if (st_JsonRoot[" XCert" ].empty () || (6 != st_JsonRoot[" XCert" ].size ()))
200196 {
0 commit comments