1
This commit is contained in:
parent
d209bb23c7
commit
eb455bb95f
@ -337,6 +337,12 @@ namespace f8
|
||||
return !getenv("SERVER_ENV");
|
||||
}
|
||||
|
||||
bool IsTestEnv()
|
||||
{
|
||||
char* env = getenv("SERVER_ENV");
|
||||
return std::string(env) == "TEST";
|
||||
}
|
||||
|
||||
bool IsValidNormalConfig(a8::XObject& conf, std::vector<std::string> fields)
|
||||
{
|
||||
if (conf.GetType() != a8::XOT_ARRAY) {
|
||||
|
@ -113,6 +113,7 @@ namespace f8
|
||||
int ExtractChannelIdFromAccountId(const std::string& accountid);
|
||||
|
||||
bool IsOnlineEnv();
|
||||
bool IsTestEnv();
|
||||
bool IsValidNormalConfig(a8::XObject& conf, std::vector<std::string> fields);
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user