|
@@ -194,8 +194,8 @@ func (this *YanxuanSpecialController) Detail() {
|
|
|
}
|
|
|
resp.ExamineStatus = item.Status
|
|
|
|
|
|
+
|
|
|
var configCode string
|
|
|
-
|
|
|
configCode = utils.TPL_MSG_WANG_FANG_WANG_YANG
|
|
|
cnf, err := models.GetConfigByCode(configCode)
|
|
|
if err != nil {
|
|
@@ -204,6 +204,7 @@ func (this *YanxuanSpecialController) Detail() {
|
|
|
return
|
|
|
}
|
|
|
if item.UserId != sysUser.UserId && item.Status != 3 && !strings.Contains(cnf.ConfigValue, sysUser.Mobile) {
|
|
|
+ resp.CygxYanxuanSpecialItem = *new(models.CygxYanxuanSpecialItem)
|
|
|
resp.HasPermission = 2
|
|
|
}
|
|
|
|
|
@@ -594,16 +595,16 @@ func (this *YanxuanSpecialController) Center() {
|
|
|
}
|
|
|
|
|
|
for _, v := range list {
|
|
|
+
|
|
|
hasStyle, err := utils.ArticleHasStyle(v.Content)
|
|
|
if err != nil {
|
|
|
return
|
|
|
}
|
|
|
- v.ContentHasStyle = hasStyle
|
|
|
hasImg, err := utils.ArticleHasImgUrl(v.Content)
|
|
|
if err != nil {
|
|
|
return
|
|
|
}
|
|
|
- if hasImg {
|
|
|
+ if hasStyle || len(v.Docs) > 0 || hasImg {
|
|
|
v.ContentHasStyle = hasImg
|
|
|
}
|
|
|
}
|