修复访问量统计

This commit is contained in:
yyhouc 2023-05-15 14:28:28 +08:00
parent bbcbb37452
commit 257d4eea37
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ public class ToolController{
* 访问量记录 * 访问量记录
*/ */
@PostMapping("/addAccess") @PostMapping("/addAccess")
public R addAccess(Long id, int type) { public R addAccess(@RequestParam Long id, @RequestParam Integer type) {
UpdateWrapper<Tool> updateWrapper = new UpdateWrapper<>(); UpdateWrapper<Tool> updateWrapper = new UpdateWrapper<>();
updateWrapper.eq("id", id); updateWrapper.eq("id", id);
if(type==1){ if(type==1){