兼容+功能
This commit is contained in:
@@ -13,16 +13,16 @@ public class RandomUtils {
|
||||
/**
|
||||
* 随机六位数
|
||||
* @return
|
||||
* @author sr on 2020-01-02
|
||||
* @author sr on 2020-01-02
|
||||
*/
|
||||
public static int nextSixInt() {
|
||||
return org.apache.commons.lang3.RandomUtils.nextInt(100000, 1000000);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 随机六位验证码
|
||||
* @return
|
||||
* @author sr on 2020-01-02
|
||||
* @author sr on 2020-01-02
|
||||
*/
|
||||
public static String nextSixVerificationCode() {
|
||||
return Integer.toString(RandomUtils.nextSixInt());
|
||||
|
||||
Reference in New Issue
Block a user