zhangchuanxing 1 месяц назад
Родитель
Сommit
da59915245
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      controllers/search.go

+ 2 - 2
controllers/search.go

@@ -318,9 +318,9 @@ func (this *MobileSearchController) BrowseHistoryList() {
 			continue
 		}
 		slicehotSearchList := strings.Split(v, "/")
-		for range slicehotSearchList {
+		for _, v2 := range slicehotSearchList {
 			item := new(models.KeyWord)
-			item.KeyWord = v
+			item.KeyWord = v2
 			resp.ListRecommend = append(resp.ListRecommend, item)
 		}
 	}