疯狂的狮子Li
2021-10-25 d254340b9b8f21b7a30f260a728fa821a5b93b69
fix 修正错别字
已修改2个文件
6 ■■■■ 文件已修改
ruoyi-framework/src/main/java/com/ruoyi/framework/aspectj/RateLimiterAspect.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-system/src/main/resources/mapper/system/SysRoleMapper.xml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-framework/src/main/java/com/ruoyi/framework/aspectj/RateLimiterAspect.java
@@ -37,13 +37,13 @@
            }
            long number = RedisUtils.rateLimiter(combineKey, rateType, count, time);
            if (number == -1) {
                throw new ServiceException("访问过于频繁,请稍后再试");
                throw new ServiceException("访问过于频繁,请稍候再试");
            }
            log.info("限制令牌 => {}, 剩余令牌 => {}, 缓存key => '{}'", count, number, combineKey);
        } catch (ServiceException e) {
            throw e;
        } catch (Exception e) {
            throw new RuntimeException("服务器限流异常,请稍后再试");
            throw new RuntimeException("服务器限流异常,请稍候再试");
        }
    }
ruoyi-system/src/main/resources/mapper/system/SysRoleMapper.xml
@@ -100,7 +100,7 @@
        WHERE r.del_flag = '0' and ur.user_id = #{userId}
    </select>
    <select id="selectRoleListByUserId" parameterType="Long" resultType="Integer">
    <select id="selectRoleListByUserId" parameterType="Long" resultType="Long">
        select r.role_id
        from sys_role r
                 left join sys_user_role ur on ur.role_id = r.role_id