Pu Zhibing
2024-10-21 f08b7e95bc941a72d4a7b7bc64c2086ed53f1565
UserIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/util/UUIDUtil.java
@@ -38,7 +38,7 @@
     * @return
     * @throws Exception
     */
    public static String getRandomCode(Integer num) throws Exception{
    public static String getRandomCode(Integer num) {
        String str = null;
        if(0 < num){
            if(num % 32 > 0){
@@ -61,7 +61,7 @@
                str = UUIDUtil.getRandomCode().substring(0, num);
            }
        }else{
            throw new Exception("参数只能大于0");
            return "";
        }
        return str;
    }