Kaynağa Gözat

[REV] 开启短信模版

pujielan 1 ay önce
ebeveyn
işleme
3c971ac355
2 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  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