无关风月
2 天以前 946dc71d5679974538986e38f19c48bb2d1bdcae
ruoyi-applet/src/main/java/com/ruoyi/web/controller/api/TUserController.java
@@ -119,10 +119,12 @@
    private WeixinProperties weixinProperties;
    @Resource
    private RedisService redisService;
    @Resource
    private MsgUtils msgUtils;
    @ApiOperation(value = "通过code获得openid,获取用户信息",tags = {"微信小程序登录"})
    @GetMapping("/openIdByJsCode")
    public R<String> openIdByJsCode(@RequestParam String code) {
        Long userId = tokenService.getLoginUser().getUserId();
        Long userId = tokenService.getLoginUserApplet().getUserId();
        SysUser sysUser = sysUserService.selectUserById(userId);
        if(Objects.isNull(sysUser)){
            return R.fail("未查询到当前登录用户信息");
@@ -138,8 +140,6 @@
        sysUserService.updateUser(sysUser);
        return R.ok();
    }
    @Resource
    private MsgUtils msgUtils;
    @ApiOperation(value = "消息通知列表")
    @PostMapping(value = "/noticeList")