Browse Source

no message

xingzai 1 year ago
parent
commit
4eea7aa5cb
2 changed files with 6 additions and 0 deletions
  1. 5 0
      controllers/yanxuan_special.go
  2. 1 0
      models/cygx_yanxuan_special_user.go

+ 5 - 0
controllers/yanxuan_special.go

@@ -527,6 +527,11 @@ func (this *YanxuanSpecialNoLoginController) AuthorDetail() {
 		return
 		return
 	}
 	}
 
 
+	//介绍、专栏名称、昵称。有一个为空,就需要完善信息
+	if item.Introduction == "" || item.SpecialName == "" || item.NickName == "" {
+		item.IsNeedPerfect = true
+	}
+
 	br.Data = item
 	br.Data = item
 	br.Ret = 200
 	br.Ret = 200
 	br.Success = true
 	br.Success = true

+ 1 - 0
models/cygx_yanxuan_special_user.go

@@ -44,6 +44,7 @@ type CygxYanxuanSpecialAuthorItem struct {
 	LatestPublishTime time.Time // 最近更新时间
 	LatestPublishTime time.Time // 最近更新时间
 	LatestPublishDate string    // 最近更新时间
 	LatestPublishDate string    // 最近更新时间
 	IsFollow          int       // 是否已关注 1已关注 0 未关注
 	IsFollow          int       // 是否已关注 1已关注 0 未关注
+	IsNeedPerfect     bool      // 专栏信息是否需要完善
 	//YanxuanSpecialCenter *CygxYanxuanSpecialCenterAuthorResp // 研选专栏文章内容
 	//YanxuanSpecialCenter *CygxYanxuanSpecialCenterAuthorResp // 研选专栏文章内容
 }
 }