SpDefine.h 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #ifndef _SP_DEFINE_H__
  2. #define _SP_DEFINE_H__
  3. class SpDefine
  4. {
  5. private:
  6. SpDefine() = delete;
  7. public:
  8. //update token params
  9. #ifdef DEVOPS_ON_ST /*DevOps流水线编译,ST环境*/
  10. static constexpr const char* channelId = "5fdd82e3b90a4de69f9da4738e5f1216";
  11. static constexpr const char* tokenSecret = "eca829c78067c686561bd844129321c8a78af3";
  12. static constexpr const char* CommonLaunchUrl = "https://rvc-gateway.paasst.cmbchina.cn";
  13. static constexpr const char* CenterConfigTotal = "https://accessproxy-service.paasst.cmbchina.cn/centerconfig";
  14. static constexpr const char* endpoint_env = "https://kafkaproxy.paasst.cmbchina.cn/api/kafka/log/send";
  15. #elif defined(DEVOPS_ON_UAT)/*DevOps流水线编译,UAT环境*/
  16. static constexpr const char* channelId = "7eb748cb71744c87b5c126e05af8cce7";
  17. static constexpr const char* tokenSecret = "eca529c78967c640561bd844229391c8a78af3";
  18. static constexpr const char* CommonLaunchUrl = "https://rvc-gateway.paasuat.cmbchina.cn";
  19. static constexpr const char* CenterConfigTotal = "https://accessproxy-service.paasuat.cmbchina.cn/centerconfig";
  20. static constexpr const char* endpoint_env = "https://kafkaproxy.paasuat.cmbchina.cn/api/kafka/log/send";
  21. #elif defined(DEVOPS_ON_PRD)/*DevOps流水线编译,PRD环境*/
  22. static constexpr const char* channelId = "572f7577fa9f425c8475a8d77db4ae31";
  23. static constexpr const char* tokenSecret = "eca129c78767c670561bd844629361c8a78af3";
  24. static constexpr const char* CommonLaunchUrl = "https://rvc-gateway.paas.cmbchina.cn";
  25. static constexpr const char* CenterConfigTotal = "https://accessproxy-service.paas.cmbchina.cn/centerconfig";
  26. static constexpr const char* endpoint_env = "https://kafkaproxy.paas.cmbchina.cn/api/kafka/log/send";
  27. #else/*本地编译等非DevOps环境编译的版本*/
  28. static constexpr const char* channelId = "5fdd82e3b90a4de69f9da4738e5f1216";
  29. static constexpr const char* tokenSecret = "eca829c78067c686561bd844129321c8a78af3";
  30. static constexpr const char* CommonLaunchUrl = "https://rvc-gateway.paasst.cmbchina.cn";
  31. static constexpr const char* CenterConfigTotal = "https://accessproxy-service.paasst.cmbchina.cn/centerconfig";
  32. static constexpr const char* endpoint_env = "https://kafkaproxy.paasst.cmbchina.cn/api/kafka/log/send";
  33. #endif
  34. //default endpoint and topic
  35. // 发送的节点地址, 默认使用程序中写死的地址,但可以通过集中配置修改
  36. static constexpr const char* endpoint = "https://kafkaproxy.paas.cmbchina.cn/api/kafka/log/send";
  37. // 发送的topic, 默认使用程序中写死的地址,但可以通过集中配置修改;已经固定好就这6个,不可随意增加,如果增加;需要修改代码。
  38. //终端使用的topic
  39. static constexpr const char* topicSys = "LR18_23_VTMTerminalLogService_L_sys_VTMTerminalSysLog_SRC_SZ";
  40. static constexpr const char* topicUser = "LR18_23_VTMTerminalLogService_L_biz_VTMTerminalUserLog_SRC_SZ";
  41. // 北斗topic
  42. static constexpr const char* topicBeidou = "LR18_23_VTMTerminalLogService_L_trace_VTMTerminalTraceLog_SRC_SZ";
  43. // 业务日志的topic
  44. static constexpr const char* topicBussSys = "LR18_23_VTMTerminalLogService_L_sys_VTMBusiness_SRC_SZ";
  45. static constexpr const char* topicBussUser = "LR18_23_VTMTerminalLogService_L_biz_VTMBusiness_SRC_SZ";
  46. // 招乎音视频日志的topic
  47. static constexpr const char* topicVTMWeb = "LR18_23_VTMWebSDKUserLog";
  48. //const log params, 默认的日志参数
  49. static constexpr const char* cmptId = "LR04.02";
  50. static constexpr const char* CmptName = "RVCTerminalPlus";
  51. static constexpr const char* deployUnitId = "LR04.02_RVCTerminalPlus";
  52. static constexpr const char* serviceUnitId = "LR04.02@RVCTerminalPlus_PRD_PRD";
  53. };
  54. #endif //_SP_DEFINE_H__