@@ -128,7 +128,7 @@ BOOL CConfig_Json::Config_Json_File(LPCTSTR lpszConfigFile, XENGINE_SERVERCONFIG
128128 pSt_ServerConfig->st_XLog .nMaxCount = st_JsonXLog[" MaxCount" ].asInt ();
129129 pSt_ServerConfig->st_XLog .nLogLeave = st_JsonXLog[" LogLeave" ].asInt ();
130130
131- if (st_JsonRoot[" XSql" ].empty () || (5 != st_JsonRoot[" XSql" ].size ()))
131+ if (st_JsonRoot[" XSql" ].empty () || (6 != st_JsonRoot[" XSql" ].size ()))
132132 {
133133 Config_IsErrorOccur = TRUE ;
134134 Config_dwErrorCode = ERROR_XENGINE_BLOGIC_CONFIG_JSON_XSQL;
@@ -141,6 +141,7 @@ BOOL CConfig_Json::Config_Json_File(LPCTSTR lpszConfigFile, XENGINE_SERVERCONFIG
141141 _tcscpy (pSt_ServerConfig->st_XSql .tszSQLAddr , st_JsonXSql[" SQLAddr" ].asCString ());
142142 _tcscpy (pSt_ServerConfig->st_XSql .tszSQLUser , st_JsonXSql[" SQLUser" ].asCString ());
143143 _tcscpy (pSt_ServerConfig->st_XSql .tszSQLPass , st_JsonXSql[" SQLPass" ].asCString ());
144+ _tcscpy (pSt_ServerConfig->st_XSql .tszSQLFile , st_JsonXSql[" SQLFile" ].asCString ());
144145
145146 if (st_JsonRoot[" XStorage" ].empty () || (3 != st_JsonRoot[" XStorage" ].size ()))
146147 {
@@ -183,14 +184,13 @@ BOOL CConfig_Json::Config_Json_File(LPCTSTR lpszConfigFile, XENGINE_SERVERCONFIG
183184 pSt_ServerConfig->st_XLimit .nMaxDNLoader = st_JsonXLimit[" nMaxDNLoad" ].asInt64 ();
184185 pSt_ServerConfig->st_XLimit .nMaxUPLoader = st_JsonXLimit[" nMaxUPLoad" ].asInt64 ();
185186
186- if (st_JsonRoot[" XP2xp" ].empty () || (5 != st_JsonRoot[" XP2xp" ].size ()))
187+ if (st_JsonRoot[" XP2xp" ].empty () || (4 != st_JsonRoot[" XP2xp" ].size ()))
187188 {
188189 Config_IsErrorOccur = TRUE ;
189190 Config_dwErrorCode = ERROR_XENGINE_BLOGIC_CONFIG_JSON_P2XP;
190191 return FALSE ;
191192 }
192193 Json::Value st_JsonP2xp = st_JsonRoot[" XP2xp" ];
193- pSt_ServerConfig->st_P2xp .nMode = st_JsonP2xp[" nMode" ].asInt ();
194194 pSt_ServerConfig->st_P2xp .nTime = st_JsonP2xp[" nTime" ].asInt ();
195195 pSt_ServerConfig->st_P2xp .nRVPort = st_JsonP2xp[" nRVPort" ].asInt ();
196196 pSt_ServerConfig->st_P2xp .nSDPort = st_JsonP2xp[" nSDPort" ].asInt ();
0 commit comments