fix: resolve message sending failure when containing "\n" using webhook and custom channel (#111)
* 使用webhook和custom通道发送消息时如果内容中包含\n会推送失败的问题 * 消息查看页面增加markdown内容解析,访问链接页面增加GFM拓展解析 * 访问链接页面GFM footnote支持
This commit is contained in:
@@ -240,7 +240,7 @@ func TriggerWebhook(c *gin.Context) {
|
||||
}
|
||||
for key, value := range extractRule {
|
||||
variableValue := gjson.Get(reqText, value).String()
|
||||
webhook.ConstructRule = strings.Replace(webhook.ConstructRule, "$"+key, variableValue, -1)
|
||||
webhook.ConstructRule = common.Replace(webhook.ConstructRule, "$"+key, variableValue, -1)
|
||||
}
|
||||
constructRule := model.WebhookConstructRule{}
|
||||
err = json.Unmarshal([]byte(webhook.ConstructRule), &constructRule)
|
||||
|
||||
Reference in New Issue
Block a user