zhangchuanxing 4 сар өмнө
parent
commit
be76551855

+ 1 - 2
services/industrial_management.go

@@ -93,7 +93,6 @@ func HandleIndustryList(list []*models.IndustrialManagement, user *models.WxUser
 			fllowTypeMap[v.IndustrialManagementId] = v.FollowType
 		}
 	}
-	fmt.Println(fllowTypeMap[716])
 
 	hotMap, e := IndustrialManagementHotMapGropuPermission()
 	if e != nil {
@@ -133,6 +132,7 @@ func HandleIndustryList(list []*models.IndustrialManagement, user *models.WxUser
 		}
 		v.IsHot = hotMap[v.IndustrialManagementId]
 		industrialIdArr = append(industrialIdArr, v.IndustrialManagementId)
+		v.FollowType = fllowTypeMap[v.IndustrialManagementId]
 		if _, ok := mapindustrialId[v.IndustrialManagementId]; !ok {
 			continue
 		}
@@ -145,7 +145,6 @@ func HandleIndustryList(list []*models.IndustrialManagement, user *models.WxUser
 			v.IndustryVideo = videoSimple
 		}
 		v.AuthInfo = au
-		v.FollowType = fllowTypeMap[v.IndustrialManagementId]
 	}
 	if len(industrialIdArr) > 0 {
 		//合并产业关联的标的