|
@@ -323,6 +323,7 @@ func HandleActivityTypeHomeList(listType []*models.ActivityTypeHome, listActivit
|
|
|
if v.YidongActivityId != "" {
|
|
|
item.IsExternalLabel = true
|
|
|
}
|
|
|
+ item.City = v.City
|
|
|
if utf8.RuneCountInString(v.City) != 2 {
|
|
|
item.City = ""
|
|
|
}
|
|
@@ -330,7 +331,6 @@ func HandleActivityTypeHomeList(listType []*models.ActivityTypeHome, listActivit
|
|
|
mapActivity[v.ActivityTypeId] = append(mapActivity[v.ActivityTypeId], item)
|
|
|
mapkeyWord[fmt.Sprint(v.ActivityTypeId, "-", item.KeyWord)] = item.KeyWord
|
|
|
}
|
|
|
-
|
|
|
for _, v := range listType {
|
|
|
v.Resource = 1
|
|
|
if len(mapActivity[v.ActivityTypeId]) > 0 {
|
|
@@ -339,9 +339,7 @@ func HandleActivityTypeHomeList(listType []*models.ActivityTypeHome, listActivit
|
|
|
v.List = make([]*models.CygxActivityLabelList, 0)
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
items = listType
|
|
|
- fmt.Println(len(mapActivity))
|
|
|
return
|
|
|
}
|
|
|
|