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; }