热词排序count下标从0开始,所以计算时候进行-1处理

This commit is contained in:
Chopper
2021-07-30 14:59:00 +08:00
parent 2018457c28
commit 8deaef09d7
2 changed files with 3 additions and 1 deletions

View File

@@ -30,7 +30,7 @@ public class HotWordsManagerController {
@ApiOperation(value = "获取热词")
@GetMapping
public ResultMessage getHotWords() {
return ResultUtil.data(esGoodsSearchService.getHotWords(99));
return ResultUtil.data(esGoodsSearchService.getHotWords(100));
}
@ApiOperation(value = "设置热词")