Переглянути джерело

Merge branch 'master' of http://192.168.3.207:8080/BaseService/jyMicroservices

wangshan 3 роки тому
батько
коміт
198097d73d

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

@@ -4,6 +4,7 @@ import (
 	"context"
 	"context"
 	"jyBXBase/rpc/bxcollection/bxcol"
 	"jyBXBase/rpc/bxcollection/bxcol"
 	"jyBXBase/rpc/bxcollection/model"
 	"jyBXBase/rpc/bxcollection/model"
+	"log"
 	"strings"
 	"strings"
 	"time"
 	"time"
 
 
@@ -36,6 +37,7 @@ func (l *AddSearchLogic) AddSearch(in *bxcol.AddSearchReq) (res *bxcol.CommonRes
 		res.ErrMsg = "用户未登录"
 		res.ErrMsg = "用户未登录"
 		return
 		return
 	}
 	}
+	log.Println("添加收藏列表:", in)
 	in.NotKey = strings.Replace(in.NotKey, " ", ",", -1)
 	in.NotKey = strings.Replace(in.NotKey, " ", ",", -1)
 	in.Keywords = strings.Replace(in.Keywords, " ", ",", -1)
 	in.Keywords = strings.Replace(in.Keywords, " ", ",", -1)
 	newData["keywords"] = in.Keywords
 	newData["keywords"] = in.Keywords

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

@@ -3,6 +3,7 @@ package logic
 import (
 import (
 	"context"
 	"context"
 	"jyBXBase/rpc/bxcollection/model"
 	"jyBXBase/rpc/bxcollection/model"
+	"log"
 	"strings"
 	"strings"
 
 
 	"jyBXBase/rpc/bxcollection/bxcol"
 	"jyBXBase/rpc/bxcollection/bxcol"
@@ -39,6 +40,7 @@ func (l *CheckSearchLogic) CheckSearch(in *bxcol.AddSearchReq) (res *bxcol.Commo
 		res.ErrMsg = "请先输入关键词"
 		res.ErrMsg = "请先输入关键词"
 		return
 		return
 	}
 	}
+	log.Println("校验收藏列表:", in)
 	in.NotKey = strings.Replace(in.NotKey, " ", ",", -1)
 	in.NotKey = strings.Replace(in.NotKey, " ", ",", -1)
 	in.Keywords = strings.Replace(in.Keywords, " ", ",", -1)
 	in.Keywords = strings.Replace(in.Keywords, " ", ",", -1)
 	query := map[string]interface{}{
 	query := map[string]interface{}{

+ 2 - 0
jyBXBase/rpc/bxcollection/internal/logic/delsearchlogic.go

@@ -7,6 +7,7 @@ import (
 	"jyBXBase/rpc/bxcollection/bxcol"
 	"jyBXBase/rpc/bxcollection/bxcol"
 	"jyBXBase/rpc/bxcollection/internal/svc"
 	"jyBXBase/rpc/bxcollection/internal/svc"
 	"jyBXBase/rpc/bxcollection/model"
 	"jyBXBase/rpc/bxcollection/model"
+	"log"
 	"strings"
 	"strings"
 )
 )
 
 
@@ -32,6 +33,7 @@ func (l *DelSearchLogic) DelSearch(in *bxcol.DelSearchReq) (res *bxcol.CommonRes
 	if len(delId) < 1 {
 	if len(delId) < 1 {
 		return
 		return
 	}
 	}
+	log.Println("删除收藏列表:", in)
 	var allDelId []primitive.ObjectID
 	var allDelId []primitive.ObjectID
 	for _, v := range delId {
 	for _, v := range delId {
 		ss, _ := primitive.ObjectIDFromHex(v)
 		ss, _ := primitive.ObjectIDFromHex(v)

+ 2 - 0
jyBXBase/rpc/bxcollection/internal/logic/showsearchlogic.go

@@ -6,6 +6,7 @@ import (
 	"jyBXBase/rpc/bxcollection/bxcol"
 	"jyBXBase/rpc/bxcollection/bxcol"
 	"jyBXBase/rpc/bxcollection/internal/svc"
 	"jyBXBase/rpc/bxcollection/internal/svc"
 	"jyBXBase/rpc/bxcollection/model"
 	"jyBXBase/rpc/bxcollection/model"
+	"log"
 
 
 	"github.com/zeromicro/go-zero/core/logx"
 	"github.com/zeromicro/go-zero/core/logx"
 )
 )
@@ -30,6 +31,7 @@ func (l *ShowSearchLogic) ShowSearch(in *bxcol.ShowSearchReq) (res *bxcol.ShowSe
 	var (
 	var (
 		data []*bxcol.ListSearchRes
 		data []*bxcol.ListSearchRes
 	)
 	)
+	log.Println("获取收藏列表:", in)
 	res = new(bxcol.ShowSearchRes)
 	res = new(bxcol.ShowSearchRes)
 	if in.UserId == "" {
 	if in.UserId == "" {
 		res.ErrCode = 1
 		res.ErrCode = 1