master:app index search 调优;

pull/1121/head
liujiang 2025-11-28 16:16:13 +08:00
parent 5d42aea349
commit 32e1cc2e70
1 changed files with 4 additions and 0 deletions

View File

@ -1042,6 +1042,10 @@ public class WebsiteAPPServiceImpl implements IWebsiteAPPService {
if (StringUtils.isEmpty(search)) {
return;
}
Long userId = SecurityUtils.getUserIdSafe();
if (ObjectUtils.isEmpty(userId)) {
return;
}
// 将用户搜索的数据存放到redis中每晚统一存到数据库中
LoginUser loginUser = SecurityUtils.getLoginUser();
// 获取用户在redis中的搜索数据