xingzai 1 год назад
Родитель
Сommit
9a2b96ddd4
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      controllers/yanxuan_special.go

+ 1 - 1
controllers/yanxuan_special.go

@@ -604,7 +604,7 @@ func (this *YanxuanSpecialController) Center() {
 		if err != nil {
 			return
 		}
-		if hasStyle || len(v.Docs) > 0 || hasImg {
+		if hasStyle || strings.Contains(v.DocUrl, "http") || hasImg {
 			v.ContentHasStyle = true
 		}
 	}