#ifndef _SP_DEFINE_H__ #define _SP_DEFINE_H__ class SpDefine { private: SpDefine() = delete; public: //update token params #ifdef DEVOPS_ON_ST /*DevOps流水线编译,ST环境*/ static constexpr const char* channelId = "5fdd82e3b90a4de69f9da4738e5f1216"; static constexpr const char* tokenSecret = "eca829c78067c686561bd844129321c8a78af3"; static constexpr const char* CommonLaunchUrl = "https://rvc-gateway.paasst.cmbchina.cn"; static constexpr const char* CenterConfigTotal = "https://accessproxy-service.paasst.cmbchina.cn/centerconfig"; static constexpr const char* endpoint_env = "https://kafkaproxy.paasst.cmbchina.cn/api/kafka/log/send"; #elif defined(DEVOPS_ON_UAT)/*DevOps流水线编译,UAT环境*/ static constexpr const char* channelId = "7eb748cb71744c87b5c126e05af8cce7"; static constexpr const char* tokenSecret = "eca529c78967c640561bd844229391c8a78af3"; static constexpr const char* CommonLaunchUrl = "https://rvc-gateway.paasuat.cmbchina.cn"; static constexpr const char* CenterConfigTotal = "https://accessproxy-service.paasuat.cmbchina.cn/centerconfig"; static constexpr const char* endpoint_env = "https://kafkaproxy.paasuat.cmbchina.cn/api/kafka/log/send"; #elif defined(DEVOPS_ON_PRD)/*DevOps流水线编译,PRD环境*/ static constexpr const char* channelId = "572f7577fa9f425c8475a8d77db4ae31"; static constexpr const char* tokenSecret = "eca129c78767c670561bd844629361c8a78af3"; static constexpr const char* CommonLaunchUrl = "https://rvc-gateway.paas.cmbchina.cn"; static constexpr const char* CenterConfigTotal = "https://accessproxy-service.paas.cmbchina.cn/centerconfig"; static constexpr const char* endpoint_env = "https://kafkaproxy.paas.cmbchina.cn/api/kafka/log/send"; #else/*本地编译等非DevOps环境编译的版本*/ static constexpr const char* channelId = "5fdd82e3b90a4de69f9da4738e5f1216"; static constexpr const char* tokenSecret = "eca829c78067c686561bd844129321c8a78af3"; static constexpr const char* CommonLaunchUrl = "https://rvc-gateway.paasst.cmbchina.cn"; static constexpr const char* CenterConfigTotal = "https://accessproxy-service.paasst.cmbchina.cn/centerconfig"; static constexpr const char* endpoint_env = "https://kafkaproxy.paasst.cmbchina.cn/api/kafka/log/send"; #endif //default endpoint and topic // 发送的节点地址, 默认使用程序中写死的地址,但可以通过集中配置修改 static constexpr const char* endpoint = "https://kafkaproxy.paas.cmbchina.cn/api/kafka/log/send"; // 发送的topic, 默认使用程序中写死的地址,但可以通过集中配置修改;已经固定好就这6个,不可随意增加,如果增加;需要修改代码。 //终端使用的topic static constexpr const char* topicSys = "LR18_23_VTMTerminalLogService_L_sys_VTMTerminalSysLog_SRC_SZ"; static constexpr const char* topicUser = "LR18_23_VTMTerminalLogService_L_biz_VTMTerminalUserLog_SRC_SZ"; // 北斗topic static constexpr const char* topicBeidou = "LR18_23_VTMTerminalLogService_L_trace_VTMTerminalTraceLog_SRC_SZ"; // 业务日志的topic static constexpr const char* topicBussSys = "LR18_23_VTMTerminalLogService_L_sys_VTMBusiness_SRC_SZ"; static constexpr const char* topicBussUser = "LR18_23_VTMTerminalLogService_L_biz_VTMBusiness_SRC_SZ"; // 招乎音视频日志的topic static constexpr const char* topicVTMWeb = "LR18_23_VTMWebSDKUserLog"; //const log params, 默认的日志参数 static constexpr const char* cmptId = "LR04.02"; static constexpr const char* CmptName = "RVCTerminalPlus"; static constexpr const char* deployUnitId = "LR04.02_RVCTerminalPlus"; static constexpr const char* serviceUnitId = "LR04.02@RVCTerminalPlus_PRD_PRD"; }; #endif //_SP_DEFINE_H__