Commit ec71cfbe by 唐功亮

【修改】 修改手机号

parent 7c84077d
......@@ -194,7 +194,7 @@ public class MemberServiceImpl extends ServiceImpl<MemberDao, MemberEntity> impl
flag = 1;
}
// 以下添加同一个ip短信发送次数验证
/* // 以下添加同一个ip短信发送次数验证
int flag_ip = 1;
TimescodeChphoneIpEntity timescodeChphoneIpEntity = timescodeChphoneIpDao.selectById(ip);
if (timescodeChphoneIpEntity != null) {
......@@ -221,13 +221,13 @@ public class MemberServiceImpl extends ServiceImpl<MemberDao, MemberEntity> impl
int times_ip = 1;
timescodeChphoneIpDao.insert(new TimescodeChphoneIpEntity(ip, date, times_ip));
flag_ip = 1;
}
}*/
// 同一个ip短信发送次数验证end
if (flag == 0) {
throw new RRException("同一手机号每日最多操作三次!");
} else if (flag_ip == 0) {
} /*else if (flag_ip == 0) {
throw new RRException("同一ip每日最多操作十次!");
}
}*/
if (phone.equals("")) {
throw new RRException("请输入手机号码");
}
......
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