2 Commits d0eedf78ef ... 00b818eb4a

Author SHA1 Message Date
  pujielan 00b818eb4a Merge branch 'dev' of ssh://git.cestong.com.cn:8162/cecf/observe-server into dev 1 month ago
  pujielan 3c971ac355 [REV] 开启短信模版 1 month ago
2 changed files with 2 additions and 2 deletions
  1. 1 1
      config/settings.yml
  2. 1 1
      handler/handler.go

+ 1 - 1
config/settings.yml

@@ -108,6 +108,6 @@ settings:
       appSecret: "VXX8H0MzT7"
       url: "http://msa.zs.test.js.sgcc.com.cn/jssms/api/sendsmsbatch" 
       appsGroup: "opentelemetry-demo:18611342234,18722341127;demo:18511342234,18622341127"
-      smsTpl: "所属系统:{{app_alias}}\n事件名称:{{events_name}}\n事件创建时间:{{date_time}}\n事件描述:{{events}}"
+      smsTpl: "所属测试系统:{{app_name}}\n事件名称:{{events_name}}\n事件创建时间:{{date_time}}\n事件描述:{{events}}"
       sqlRecord: true
 

+ 1 - 1
handler/handler.go

@@ -137,7 +137,7 @@ func GetSmsConfigInstance(db *gorm.DB) *SmsConfig {
 	sc.Appsecret = extConfig.ExtConfig.SmsConfig.Appsecret
 	// sc.SmsTpl = extConfig.ExtConfig.SmsConfig.SmsTpl
 	// TODO: set default sms template,需要修改为外部模版
-	sc.SmsTpl = DEFAULTSMSTPL
+	sc.SmsTpl = extConfig.ExtConfig.SmsConfig.SmsTpl
 	sc.Url = extConfig.ExtConfig.SmsConfig.Url
 	sc.SQLRecord = extConfig.ExtConfig.SmsConfig.SqlRecord