ruoyi-applet/src/main/java/com/ruoyi/web/controller/api/TInformationController.java
@@ -51,7 +51,9 @@ public R<TInformation> getDetailById(@RequestParam String id) { // 处理查看次数 redisCache.increment(Constants.INFORMATION_VIEW + id); return R.ok(informationService.getById(id)); TInformation information = informationService.getById(id); information.setViewCount(redisCache.getCacheObject(Constants.INFORMATION_VIEW + information.getId())); return R.ok(information); } }