RuoYi
2022-07-12 955a4b0dfb773aacb1592c04aaf6951e3f1bc0ec
src/main/java/com/ruoyi/framework/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]);