1.新增微信通知方式

2.通知模板变量更改
3.删除沉余sql
4.readme.md更新
This commit is contained in:
linxiaozhi
2019-02-17 07:07:33 +08:00
parent 34a3de6cfd
commit e392e4c12e
21 changed files with 201 additions and 94 deletions

View File

@@ -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