|
@@ -43,8 +43,10 @@
|
|
|
#include <iomanip>
|
|
|
#include <windows.h>
|
|
|
#define UPDATE_ROOT_BY_HTTP
|
|
|
+#define READ_SHELL_NODE SHELL_ENTITY_HEAD
|
|
|
#else
|
|
|
#include "JsonConvertHelper.hpp"
|
|
|
+#define READ_SHELL_NODE "UOSEntity"
|
|
|
#endif //_MSC_VER
|
|
|
#include "sp_checkEntity.h"
|
|
|
#include <log_producer_config.h>
|
|
@@ -1590,7 +1592,7 @@ static int shell_ini__load_entities_list(sp_dir_t* dir, sp_cfg_shell_ini_t* shel
|
|
|
entity->debug_level = debugLevelArr.find(entity->name) == debugLevelArr.end() ? 0 : debugLevelArr[cur_it->first];
|
|
|
entity->log_record_level = getEntityLogLevel(entity->name);
|
|
|
|
|
|
- entity->runType = 1;//1,Debug;2,Release
|
|
|
+ entity->runType = 1;
|
|
|
//judge if run in release or debug
|
|
|
std::string tmpEntityName = entity->name, entityInfo = "";
|
|
|
std::transform(tmpEntityName.begin(), tmpEntityName.end(), tmpEntityName.begin(), ::tolower);
|
|
@@ -2048,12 +2050,7 @@ ErrorCodeEnum init_shell_byHttp(sp_dir_t* dir, sp_cfg_shell_ini_t* shell, sp_cfg
|
|
|
|
|
|
//init entity arr,去除以;开头的实体
|
|
|
std::map<std::string, std::string> entityArr = clearUnExistConfig(shellConfig[SHELL_ENTITY_HEAD]);
|
|
|
- //TODO: CrossPlaform [Gifur@2025730]
|
|
|
-#ifdef _WIN32
|
|
|
- CSimpleStringA sectionNameWithType = CSimpleStringA::Format("%s_%s", SHELL_ENTITY_HEAD, root->machine_type);
|
|
|
-#else
|
|
|
- CSimpleStringA sectionNameWithType = CSimpleStringA::Format("%s_%s", "UOSEntity", root->machine_type);
|
|
|
-#endif
|
|
|
+ CSimpleStringA sectionNameWithType = CSimpleStringA::Format("%s_%s", READ_SHELL_NODE, root->machine_type);
|
|
|
if (shellConfig.find(sectionNameWithType.GetData()) != shellConfig.end()) //有带机型的实体
|
|
|
{
|
|
|
std::map<std::string, std::string> entityTypeArr = clearUnExistConfig(shellConfig[sectionNameWithType.GetData()]);
|