浏览代码

feat:p718 bxcore

fuwencai 3 月之前
父节点
当前提交
175fe9485d
共有 2 个文件被更改,包括 3 次插入0 次删除
  1. 1 0
      jyBXCore/api/internal/logic/searchListLogic.go
  2. 2 0
      jyBXCore/rpc/internal/logic/getsearchlistlogic.go

+ 1 - 0
jyBXCore/api/internal/logic/searchListLogic.go

@@ -45,6 +45,7 @@ func (l *SearchListLogic) SearchList(req *types.SearchReq) (resp *types.CommonRe
 	//if strings.Contains(l.r.Referer(), "BI") {
 	//	mobileTag = req.MobileTag
 	//}
+	log.Println("req", req)
 	res, err := l.svcCtx.BxCore.GetSearchList(l.ctx, &bxcore.SearchReq{
 		AppId:           req.AppId,
 		UserId:          req.UserId,

+ 2 - 0
jyBXCore/rpc/internal/logic/getsearchlistlogic.go

@@ -50,6 +50,7 @@ func (l *GetSearchListLogic) GetSearchList(in *bxcore.SearchReq) (*bxcore.Search
 	}
 	//初始化搜索对象
 	ks := service.NewKeyWordsSearch()
+	log.Println("req:", in)
 	// 未登录用户只允许翻页和筛选搜索范围 其他参数无效
 	if in.UserId == "" {
 		in = &bxcore.SearchReq{
@@ -151,6 +152,7 @@ func (l *GetSearchListLogic) GetSearchList(in *bxcore.SearchReq) (*bxcore.Search
 			ErrCode: 0,
 		}, nil
 	} else {
+		log.Println("userId", in.UserName, in.UserId)
 		if in.UserId != "" {
 			key := fmt.Sprintf(TaskActivityCacheKey, in.PositionId, TaskActiveId, TaskIdSearch)
 			if exist, _ := redis.Exists("other", key); !exist {