add IsOnLineEnv

This commit is contained in:
aozhiwei 2019-01-12 15:22:11 +08:00
parent d5d9f92e67
commit 088c2dfdc0
2 changed files with 8 additions and 0 deletions

View File

@ -191,4 +191,10 @@ namespace f8
std::string gameid = strings[1];
return a8::XValue(channelid);
}
bool IsOnlineEnv()
{
return !getenv("SERVER_ENV");
}
}

View File

@ -87,4 +87,6 @@ namespace f8
bool IsValidSessionId(const std::string& accountid, const std::string& sessionid);
int ExtractGameIdFromAccountId(const std::string& accountid);
int ExtractChannelIdFromAccountId(const std::string& accountid);
bool IsOnlineEnv();
}