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