fix bug 手机号验证码一分钟只能发送一次

This commit is contained in:
lijiarao
2021-10-26 09:52:39 +08:00
parent c5f1fbf6fd
commit 258e2e0a8f
@@ -86,7 +86,7 @@ public class HuaWeiSmsUtil {
long expire = redisUtil.getExpire("_verification:_phone:" + phone);
//值为-2代表没有此数据
if (expire != -2){
if (600 - expire <= 60){
if (Integer.parseInt(codeTime) - expire <= 60){
throw new JeroBootException("1分钟内只能发送一次验证码");
}
}