@@ -289,6 +289,12 @@ func (this *YanxuanSpecialController) Save() {
item.Status = 2
}
+ errCode, keyword := models.WxCheckContent(req.Content)
+ if errCode != 0 {
+ br.Msg = "文章内容含有违法违规内容,关键词:"+keyword
+ br.ErrMsg = "文章内容含有违法违规内容,关键词:"+keyword
+ return
+ }
if req.Id == 0 {
_, err = models.AddCygxYanxuanSpecial(&item)
if err != nil {