Explorar o código

Merge branch 'cygx_12.0' into debug

ziwen hai 1 ano
pai
achega
80edf4c670
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      controllers/yanxuan_special.go

+ 7 - 0
controllers/yanxuan_special.go

@@ -563,6 +563,13 @@ func (this *YanxuanSpecialController) Center() {
 			return
 		}
 		v.ContentHasStyle = hasStyle
+		hasImg, err := utils.ArticleHasImgUrl(v.Content)
+		if err != nil {
+			return
+		}
+		if hasImg {
+			v.ContentHasStyle = hasImg
+		}
 	}