添加再次发送短信接口

This commit is contained in:
sh
2026-04-10 11:19:02 +08:00
parent cb529480ee
commit 5eed92dd35
3 changed files with 77 additions and 10 deletions

View File

@@ -0,0 +1,23 @@
package com.ruoyi.common.utils;
import cn.hutool.core.util.RandomUtil;
/**
* 验证码通用工具类(全项目复用)
*/
public class RandomCodeUtils {
/**
* 生成 6 位数字验证码
*/
public static String generateSixCode() {
return RandomUtil.randomNumbers(6);
}
/**
* 生成指定位数数字验证码
*/
public static String generateNumberCode(int length) {
return RandomUtil.randomNumbers(length);
}
}