mirror of https://github.com/tp4a/teleport
pull/32/head
parent
a54431880c
commit
17ff40746e
|
@ -16,6 +16,7 @@
|
||||||
#define TPE_NEED_LOGIN 2 // 需要登录
|
#define TPE_NEED_LOGIN 2 // 需要登录
|
||||||
#define TPE_PRIVILEGE 3 // 没有操作权限
|
#define TPE_PRIVILEGE 3 // 没有操作权限
|
||||||
#define TPE_EXISTS 8 // 目标已经存在
|
#define TPE_EXISTS 8 // 目标已经存在
|
||||||
|
#define TPE_NOT_EXISTS 9 // 目标不存在
|
||||||
|
|
||||||
// 100~299是通用错误值
|
// 100~299是通用错误值
|
||||||
|
|
||||||
|
|
|
@ -68,6 +68,8 @@ bool TsEnv::init(bool load_config)
|
||||||
}
|
}
|
||||||
|
|
||||||
ExIniSection* ps = m_ini.GetSection(L"common");
|
ExIniSection* ps = m_ini.GetSection(L"common");
|
||||||
|
if(NULL == ps)
|
||||||
|
ps = m_ini.GetDumySection();
|
||||||
|
|
||||||
ex_wstr replay_path;
|
ex_wstr replay_path;
|
||||||
if (ps->GetStr(L"replay-path", replay_path))
|
if (ps->GetStr(L"replay-path", replay_path))
|
||||||
|
|
|
@ -73,7 +73,10 @@ bool TsEnv::init(bool load_config)
|
||||||
}
|
}
|
||||||
|
|
||||||
ex_wstr log_file;
|
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))
|
if (!ps->GetStr(L"log-file", log_file))
|
||||||
{
|
{
|
||||||
EXLOG_FILE(L"tpweb.log", log_path.c_str());
|
EXLOG_FILE(L"tpweb.log", log_path.c_str());
|
||||||
|
|
Loading…
Reference in New Issue