Browse Source

#2624

update
tags/v1.22.8.1^2
chenyifan01 4 years ago
parent
commit
892e126a2b
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      modules/auth/wechat/client.go
  2. +1
    -0
      modules/auth/wechat/cloudbrain.go

+ 1
- 0
modules/auth/wechat/client.go View File

@@ -66,6 +66,7 @@ type DefaultWechatTemplate struct {
Keyword1 TemplateValue `json:"keyword1"`
Keyword2 TemplateValue `json:"keyword2"`
Keyword3 TemplateValue `json:"keyword3"`
Keyword4 TemplateValue `json:"keyword4"`
Remark TemplateValue `json:"remark"`
}



+ 1
- 0
modules/auth/wechat/cloudbrain.go View File

@@ -62,6 +62,7 @@ func (CloudbrainStopMsg) Data(ctx *TemplateContext) *DefaultWechatTemplate {
Keyword1: TemplateValue{Value: ctx.Cloudbrain.DisplayJobName},
Keyword2: TemplateValue{Value: getJobTypeDisplayName(ctx.Cloudbrain.JobType)},
Keyword3: TemplateValue{Value: time.Unix(int64(ctx.Cloudbrain.CreatedUnix), 0).Format("2006-01-02 15:04:05")},
Keyword4: TemplateValue{Value: time.Unix(int64(ctx.Cloudbrain.EndTime), 0).Format("2006-01-02 15:04:05")},
Remark: TemplateValue{Value: setting.CloudbrainStoppedRemark},
}
}


Loading…
Cancel
Save