Skip to content

Commit 3fb0494

Browse files
committed
update:zip database file configure
1 parent 1a9be2b commit 3fb0494

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

XEngine_Source/XEngine_ModuleConfigure/ModuleConfig_Define.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ typedef struct
4343
TCHAR tszIDData[MAX_PATH]; //ID数据库地址
4444
TCHAR tszPhoneData[MAX_PATH]; //电话号码数据库地址
4545
TCHAR tszBankData[MAX_PATH]; //银行卡数据库地址
46+
TCHAR tszZIPCodeData[MAX_PATH]; //邮编数据库地址
4647
TCHAR tszBankUrl[MAX_PATH]; //银行卡验证地址
4748
TCHAR tszTranslationUrl[MAX_PATH]; //翻译接口
4849
}st_XApi;

XEngine_Source/XEngine_ModuleConfigure/ModuleConfigure_Json/ModuleConfigure_Json.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ BOOL CModuleConfigure_Json::ModuleConfigure_Json_File(LPCTSTR lpszConfigFile, XE
119119
pSt_ServerConfig->st_XLog.nMaxCount = st_JsonXLog["MaxCount"].asInt();
120120
pSt_ServerConfig->st_XLog.nLogLeave = st_JsonXLog["LogLeave"].asInt();
121121

122-
if (st_JsonRoot["XApi"].empty() || (6 != st_JsonRoot["XApi"].size()))
122+
if (st_JsonRoot["XApi"].empty() || (7 != st_JsonRoot["XApi"].size()))
123123
{
124124
Config_IsErrorOccur = TRUE;
125125
Config_dwErrorCode = ERROR_MODULE_CONFIGURE_JSON_XDB;
@@ -130,6 +130,7 @@ BOOL CModuleConfigure_Json::ModuleConfigure_Json_File(LPCTSTR lpszConfigFile, XE
130130
_tcscpy(pSt_ServerConfig->st_XApi.tszIDData, st_JsonXApi["tszIDData"].asCString());
131131
_tcscpy(pSt_ServerConfig->st_XApi.tszPhoneData, st_JsonXApi["tszPhoneData"].asCString());
132132
_tcscpy(pSt_ServerConfig->st_XApi.tszBankData, st_JsonXApi["tszBankData"].asCString());
133+
_tcscpy(pSt_ServerConfig->st_XApi.tszZIPCodeData, st_JsonXApi["tszZIPCodeData"].asCString());
133134
_tcscpy(pSt_ServerConfig->st_XApi.tszBankUrl, st_JsonXApi["tszBankUrl"].asCString());
134135
_tcscpy(pSt_ServerConfig->st_XApi.tszTranslationUrl, st_JsonXApi["tszTranslationUrl"].asCString());
135136

0 commit comments

Comments
 (0)