Ver Fonte

fix:删除二次分词排序

wangshan há 3 anos atrás
pai
commit
c33e5d16fb
1 ficheiros alterados com 3 adições e 4 exclusões
  1. 3 4
      jyBXCore/rpc/util/search.go

+ 3 - 4
jyBXCore/rpc/util/search.go

@@ -15,7 +15,6 @@ import (
 	"net/http"
 	"net/url"
 	"regexp"
-	"sort"
 	"strconv"
 	"strings"
 	"time"
@@ -597,8 +596,8 @@ func DelRepeatSearchData(resOne, resTwo []*bxcore.SearchList) []*bxcore.SearchLi
 		}
 		resOne = append(resOne, resTwo...)
 	}
-	sort.Slice(resOne, func(i, j int) bool {
-		return resOne[i].PublishTime > resOne[j].PublishTime
-	})
+	//sort.Slice(resOne, func(i, j int) bool {
+	//	return resOne[i].PublishTime > resOne[j].PublishTime
+	//})
 	return resOne
 }