若依
2022-07-14 424d11896ac3659a42214e3bc8ac366cf5ade837
!531 去除生成验证码多余的逻辑判断
Merge pull request !531 from 稚屿/N/A
已修改1个文件
9 ■■■■ 文件已修改
ruoyi-framework/src/main/java/com/ruoyi/framework/config/KaptchaTextCreator.java 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-framework/src/main/java/com/ruoyi/framework/config/KaptchaTextCreator.java
@@ -45,7 +45,7 @@
                suChinese.append(CNUMBERS[y]);
            }
        }
        else if (randomoperands == 2)
        else
        {
            if (x >= y)
            {
@@ -61,13 +61,6 @@
                suChinese.append("-");
                suChinese.append(CNUMBERS[x]);
            }
        }
        else
        {
            result = x + y;
            suChinese.append(CNUMBERS[x]);
            suChinese.append("+");
            suChinese.append(CNUMBERS[y]);
        }
        suChinese.append("=?@" + result);
        return suChinese.toString();