xingzai 2 жил өмнө
parent
commit
c4732f2125

+ 1 - 1
controllers/activity.go

@@ -423,8 +423,8 @@ func (this *ActivityController) Detail() {
 			br.ErrMsg = "获取活动关联的产业列表信息失败,Err:" + err.Error() + "activityId:" + strconv.Itoa(activityId)
 			return
 		}
-		industrialList = make([]*models.IndustrialManagementRep, 0)
 		if activityInfo.TemporaryLabel != "" {
+			industrialList = make([]*models.IndustrialManagementRep, 0)
 			item := new(models.IndustrialManagementRep)
 			item.IndustryName = activityInfo.Label
 			industrialList = append(industrialList, item)