Commit cfdcd528 authored by zhouxudong's avatar zhouxudong

添加白名单 ip

parent 68b2058d
......@@ -90,7 +90,7 @@ public class LiyerenServiceImpl implements LiyerenService {
}
List<Integer> temp = new ArrayList<>();
temp.add(sendPhoneVo.getCode());
/* // 发送短信
// 发送短信
String result =
sendMsgUtils.sendMsg(
sendPhoneVo.getPhone(),
......@@ -112,7 +112,7 @@ public class LiyerenServiceImpl implements LiyerenService {
if (!"000000".equals(smsVo.getCode())) {
log.error("短信发送失败:{},手机号:{}", smsVo, sendPhoneVo.getPhone());
throw new LiyerenException(407, result);
}*/
}
RedisUtil.set(
key, String.valueOf(sendPhoneVo.getCode()), Constants.EXPIRE_TIME, TimeUnit.MINUTES);
return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment