Skip to content

Commit 41f28c7

Browse files
committed
fixed:configure file parse count
1 parent 7add6d2 commit 41f28c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

XEngine_Source/AuthorizeModule_Configure/ModuleConfigure_Json/ModuleConfigure_Json.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ bool CModuleConfigure_Json::ModuleConfigure_Json_File(LPCXSTR lpszConfigFile, XE
8787
pSt_ServerConfig->bDeamon = st_JsonRoot["bDeamon"].asBool();
8888
pSt_ServerConfig->bTimeNotify = st_JsonRoot["bTimeNotify"].asBool();
8989
//最大配置
90-
if (st_JsonRoot["XMax"].empty() || (7 != st_JsonRoot["XMax"].size()))
90+
if (st_JsonRoot["XMax"].empty() || (6 != st_JsonRoot["XMax"].size()))
9191
{
9292
Config_IsErrorOccur = true;
9393
Config_dwErrorCode = ERROR_AUTHORIZE_MODULE_CONFIGURE_XMAX;
@@ -101,7 +101,7 @@ bool CModuleConfigure_Json::ModuleConfigure_Json_File(LPCXSTR lpszConfigFile, XE
101101
pSt_ServerConfig->st_XMax.nWSThread = st_JsonXMax["nWSThread"].asInt();
102102
pSt_ServerConfig->st_XMax.nHTTPThread = st_JsonXMax["nHTTPThread"].asInt();
103103
//验证配置
104-
if (st_JsonRoot["XVerification"].empty() || (8 != st_JsonRoot["XVerification"].size()))
104+
if (st_JsonRoot["XVerification"].empty() || (9 != st_JsonRoot["XVerification"].size()))
105105
{
106106
Config_IsErrorOccur = true;
107107
Config_dwErrorCode = ERROR_AUTHORIZE_MODULE_CONFIGURE_XVER;

0 commit comments

Comments
 (0)