浏览代码

fix:企业关注展示关注信息

duxin 6 月之前
父节点
当前提交
c80af4901a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/jfw/modules/bigmember/src/entity/followEnterprise.go

+ 1 - 1
src/jfw/modules/bigmember/src/entity/followEnterprise.go

@@ -100,7 +100,7 @@ INNER  JOIN  follow_ent_monitor_relationship b on (a.s_entId = b.s_entId)
 INNER JOIN  follow_ent_monitor_group c on (b.s_groupId = c.id and a.s_userid = c.s_userid)
 WHERE a.s_entId = '%s' and a.s_userid = '%s'`, this.SaveTable, entId, this.UserId))
 	followed = false
-	if fRes != nil {
+	if fRes != nil && len(*fRes) > 0 {
 		followed = true
 		var names []string
 		for _, m := range *fRes {