|
@@ -314,9 +314,15 @@ func (this *MobileSearchController) BrowseHistoryList() {
|
|
}
|
|
}
|
|
slicehotSearch := strings.Split(hotSearch, ",")
|
|
slicehotSearch := strings.Split(hotSearch, ",")
|
|
for _, v := range slicehotSearch {
|
|
for _, v := range slicehotSearch {
|
|
- item := new(models.KeyWord)
|
|
|
|
- item.KeyWord = v
|
|
|
|
- resp.ListRecommend = append(resp.ListRecommend, item)
|
|
|
|
|
|
+ if v == "" {
|
|
|
|
+ continue
|
|
|
|
+ }
|
|
|
|
+ slicehotSearchList := strings.Split(v, "/")
|
|
|
|
+ for range slicehotSearchList {
|
|
|
|
+ item := new(models.KeyWord)
|
|
|
|
+ item.KeyWord = v
|
|
|
|
+ resp.ListRecommend = append(resp.ListRecommend, item)
|
|
|
|
+ }
|
|
}
|
|
}
|
|
var condition string
|
|
var condition string
|
|
var pars []interface{}
|
|
var pars []interface{}
|