fix bug 手机号验证码一分钟只能发送一次
This commit is contained in:
+1
-1
@@ -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分钟内只能发送一次验证码");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user