pull/32/head
Apex Liu 2017-06-29 19:27:57 +08:00
parent a54431880c
commit 17ff40746e
3 changed files with 7 additions and 1 deletions

View File

@ -16,6 +16,7 @@
#define TPE_NEED_LOGIN 2 // 需要登录
#define TPE_PRIVILEGE 3 // 没有操作权限
#define TPE_EXISTS 8 // 目标已经存在
#define TPE_NOT_EXISTS 9 // 目标不存在
// 100~299是通用错误值

View File

@ -68,6 +68,8 @@ bool TsEnv::init(bool load_config)
}
ExIniSection* ps = m_ini.GetSection(L"common");
if(NULL == ps)
ps = m_ini.GetDumySection();
ex_wstr replay_path;
if (ps->GetStr(L"replay-path", replay_path))

View File

@ -73,7 +73,10 @@ bool TsEnv::init(bool load_config)
}
ex_wstr log_file;
ExIniSection* ps = cfg.GetDumySection();
// ExIniSection* ps = cfg.GetDumySection();
ExIniSection* ps = cfg.GetSection(L"common");
if (NULL == ps)
ps = cfg.GetDumySection();
if (!ps->GetStr(L"log-file", log_file))
{
EXLOG_FILE(L"tpweb.log", log_path.c_str());