liujie
5 天以前 eb9256cd2cba7a5cdf9ccbdc7919eb4652557105
ruoyi-service/ruoyi-study/src/main/java/com/ruoyi/study/controller/TUserController.java
@@ -896,6 +896,7 @@
            study.setPair(Constants.BURDEN_ONE);
            userStudyService.save(study);
        }
        map.put("lookVideo", tUser1.getLookVideo()==null?0:tUser1.getLookVideo());
        return R.ok(map);
    }
@@ -1164,6 +1165,18 @@
        }
        return R.ok(byId);
    }
    @PostMapping("/lookVideo")
    @ApiOperation(value = "看完操作视频调用", tags = {"家长端-登录"})
    public R<TUser> lookVideo() {
        LoginUserParent loginUserStudy = tokenService.getLoginUser1();
        if (null == loginUserStudy) {
            return R.tokenError("登录失效!");
        }
        TUser byId = userService.getById(loginUserStudy.getUserid());
        byId.setLookVideo(1);
        userService.updateById(byId);
        return R.ok();
    }
    @PostMapping("/deleteUser")
    @ApiOperation(value = "注销当前帐号", tags = {"家长端-个人中心"})