RuoYi
2026-04-10 31d588a7c9d1b4749740307df2ec0bc0d930ada7
ruoyi-gateway/src/main/java/com/ruoyi/gateway/config/KaptchaTextCreator.java
@@ -20,7 +20,7 @@
        int x = random.nextInt(10);
        int y = random.nextInt(10);
        StringBuilder suChinese = new StringBuilder();
        int randomoperands = (int) Math.round(Math.random() * 2);
        int randomoperands = random.nextInt(3);
        if (randomoperands == 0)
        {
            result = x * y;
@@ -30,7 +30,7 @@
        }
        else if (randomoperands == 1)
        {
            if (!(x == 0) && y % x == 0)
            if ((x != 0) && y % x == 0)
            {
                result = y / x;
                suChinese.append(CNUMBERS[y]);