|
@@ -1018,9 +1018,14 @@ func (this *EdbInfoController) GetFenWeiIndexInfo() {
|
|
classifyIds := this.GetString("ClassifyIds")
|
|
classifyIds := this.GetString("ClassifyIds")
|
|
frequencies := this.GetString("Frequencies")
|
|
frequencies := this.GetString("Frequencies")
|
|
|
|
|
|
- classifyIdList := strings.Split(classifyIds, ",")
|
|
|
|
- frequencyList := strings.Split(frequencies, ",")
|
|
|
|
-
|
|
|
|
|
|
+ var classifyIdList []string
|
|
|
|
+ var frequencyList []string
|
|
|
|
+ if classifyIds != "" {
|
|
|
|
+ classifyIdList = strings.Split(classifyIds, ",")
|
|
|
|
+ }
|
|
|
|
+ if frequencies != "" {
|
|
|
|
+ frequencyList = strings.Split(frequencies, ",")
|
|
|
|
+ }
|
|
indexInfoPage, err := data.GetFenWeiIndexInfo(keyWord, classifyIdList, frequencyList, currentIndex, pageSize)
|
|
indexInfoPage, err := data.GetFenWeiIndexInfo(keyWord, classifyIdList, frequencyList, currentIndex, pageSize)
|
|
if err != nil {
|
|
if err != nil {
|
|
return
|
|
return
|