Pu Zhibing
10 天以前 4c99ee7028c3fe58a2cd4b8273b22c75c45574fc
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;
    }