1.新增微信通知方式
2.通知模板变量更改 3.删除沉余sql 4.readme.md更新
This commit is contained in:
@@ -59,7 +59,7 @@ func (self *NotifyTplController) AjaxSave() {
|
||||
notifyTpl.Type = models.NotifyTplTypeDefault
|
||||
notifyTpl.Status, _ = self.GetInt("status")
|
||||
|
||||
if notifyTpl.TplType == 1 {
|
||||
if notifyTpl.TplType == 1 || notifyTpl.TplType == 3 {
|
||||
m := make(map[string]string)
|
||||
err := json.Unmarshal([]byte(notifyTpl.Content), &m)
|
||||
if err != nil {
|
||||
@@ -85,7 +85,7 @@ func (self *NotifyTplController) AjaxSave() {
|
||||
notifyTpl.Content = strings.TrimSpace(self.GetString("content"))
|
||||
notifyTpl.Status, _ = self.GetInt("status")
|
||||
|
||||
if notifyTpl.TplType == 1 {
|
||||
if notifyTpl.TplType == 1 || notifyTpl.TplType == 3 {
|
||||
m := make(map[string]string)
|
||||
err := json.Unmarshal([]byte(notifyTpl.Content), &m)
|
||||
if err != nil {
|
||||
@@ -137,6 +137,7 @@ func (self *NotifyTplController) Table() {
|
||||
"邮件",
|
||||
"信息",
|
||||
"钉钉",
|
||||
"微信",
|
||||
}
|
||||
|
||||
self.pageSize = limit
|
||||
|
||||
Reference in New Issue
Block a user