liurunyu
2024-07-24 33af27ee7a189b538452fc9adb63e0784324e009
pipIrr-platform/pipIrr-web/pipIrr-web-sso/src/main/java/com/dy/sso/busi/SsoCtrl.java
@@ -229,7 +229,7 @@
    @GetMapping(path = "loginUserId")
    public Long loginUserId(String token){
        BaUser userPo = this.sv.getByUuid(token) ;
        return userPo == null ? null : userPo.userId ;
        return userPo == null ? null : userPo.id ;
    }
    /**
     * 此方法供子模块系统调用,所以不公开在API接口中
@@ -245,10 +245,10 @@
        if(userPo != null){
            vo.dataSourceName = userPo.orgTag ;
            vo.logined = true ;
            vo.hasPower = true ;//默认有权限
            vo.hasPower = true ;//默认有权限。2023-12-21 经商议,由前端鉴权
        }else{
            vo.logined = false ;
            vo.hasPower = true ;//默认有权限
            vo.hasPower = true ;//默认有权限。2023-12-21 经商议,由前端鉴权
        }
        return vo ;
    }
@@ -306,7 +306,7 @@
        BaUser userPo = this.sv.getByUuid(token) ;
        CurUserVo vo = new CurUserVo();
        if(userPo != null){
            vo.id = userPo.userId ;
            vo.id = userPo.id ;
            vo.name = userPo.userName;
        }
        return vo ;