瀏覽代碼

wip:筛选条件处理调整

fuwencai 2 年之前
父節點
當前提交
ef686b39f2
共有 2 個文件被更改,包括 0 次插入4 次删除
  1. 0 2
      jyBXBase/rpc/internal/logic/addsearchlogic.go
  2. 0 2
      jyBXBase/rpc/internal/logic/checksearchlogic.go

+ 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,
 	}