Browse Source

wip:筛选条件处理调整

fuwencai 2 years ago
parent
commit
ef686b39f2

+ 0 - 2
jyBXBase/rpc/internal/logic/addsearchlogic.go

@@ -42,9 +42,7 @@ func (l *AddSearchLogic) AddSearch(in *bxbase.AddSearchReq) (res *bxbase.CommonR
 		return
 	}
 	log.Println("添加搜索列表:", in)
-	in.NotKey = strings.Replace(in.NotKey, " ", ",", -1)
 	in.Keywords = strings.Replace(in.Keywords, " ", ",", -1)
-	in.AdditionalWords = strings.Replace(in.AdditionalWords, " ", ",", -1)
 	newData["keywords"] = in.Keywords
 	newData["type"] = in.Type
 	newData["publish_time"] = in.PublishTime

+ 0 - 2
jyBXBase/rpc/internal/logic/checksearchlogic.go

@@ -46,9 +46,7 @@ func (l *CheckSearchLogic) CheckSearch(in *bxbase.AddSearchReq) (res *bxbase.Che
 		return
 	}
 	log.Println("校验搜索列表:", in)
-	in.NotKey = strings.Replace(in.NotKey, " ", ",", -1)
 	in.Keywords = strings.Replace(in.Keywords, " ", ",", -1)
-	in.AdditionalWords = strings.Replace(in.AdditionalWords, " ", ",", -1)
 	query := map[string]interface{}{
 		"user_id": in.UserId,
 	}