ziwen hace 1 año
padre
commit
65c8ef5cf9
Se han modificado 1 ficheros con 12 adiciones y 4 borrados
  1. 12 4
      controllers/home.go

+ 12 - 4
controllers/home.go

@@ -301,10 +301,18 @@ func (this *MobileHomeController) NewList() {
 				br.ErrMsg = "GetCygxTagByTagId,Err:" + err.Error()
 				return
 			}
-			activityTypes += tagInfo.ActivityTypes + ","
-			articleTypes += tagInfo.ArticleTypes + ","
-			industries += tagInfo.Industries + ","
-			subjectNames += tagInfo.SubjectNames + ","
+			if tagInfo.ActivityTypes != "" {
+				activityTypes += tagInfo.ActivityTypes + ","
+			}
+			if tagInfo.ArticleTypes != "" {
+				articleTypes += tagInfo.ArticleTypes + ","
+			}
+			if tagInfo.Industries != "" {
+				industries += tagInfo.Industries + ","
+			}
+			if tagInfo.SubjectNames != "" {
+				subjectNames += tagInfo.SubjectNames + ","
+			}
 		}
 	}