liujie
8 天以前 5749ed70ef32a69c69add0f7490adfbebf211f0f
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,17 @@
        }
        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);
        return R.ok(byId);
    }
    @PostMapping("/deleteUser")
    @ApiOperation(value = "注销当前帐号", tags = {"家长端-个人中心"})