自动化立体仓库 - WCS系统
zhangc
2025-03-11 d5449236ef0b3adafb3e4cc872f50479efa0ce7b
src/main/java/com/zy/common/utils/RandomValidateCodeUtil.java
@@ -11,7 +11,7 @@
public class RandomValidateCodeUtil {
    public static final Map<String, String> code = new ConcurrentHashMap<>();
    private static String randString = "0123456789ABCDEFGHJKLMNPRSTUVWXYZ";//随机产生数字与字母组合的字符串
    private static int width = 60;// 图片宽
    private static int height = 27;// 图片高
@@ -97,7 +97,7 @@
                .length())));
        randomString += rand;
        g.translate(random.nextInt(3), random.nextInt(3));
        g.drawString(rand, 13 * (i-1)+2, 16);
        g.drawString(rand, 13 * (i - 1) + 2, 16);
        return randomString;
    }