疯狂的狮子li
2022-09-02 0e39f6fa2d67de9d956f3e043f68b7bd7a030db2
ruoyi-common/src/main/java/com/ruoyi/common/core/domain/model/LoginUser.java
@@ -105,6 +105,12 @@
     * 获取登录id
     */
    public String getLoginId() {
        if (userType == null) {
            throw new IllegalArgumentException("用户类型不能为空");
        }
        if (userId == null) {
            throw new IllegalArgumentException("用户ID不能为空");
        }
        return userType + LoginHelper.JOIN_CODE + userId;
    }