Pārlūkot izejas kodu

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

duxin 6 mēneši atpakaļ
vecāks
revīzija
c80af4901a

+ 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 {