Commit 55a3c8ad by xieshixiang

修改手机号校验规则

parent 1a211f73
...@@ -96,7 +96,7 @@ public class BindServiceImpl extends ServiceImpl<BindInfoMapper, ParkBindInfo> i ...@@ -96,7 +96,7 @@ public class BindServiceImpl extends ServiceImpl<BindInfoMapper, ParkBindInfo> i
boundQuery.eq("status", "1"); boundQuery.eq("status", "1");
List<ParkBindInfo> phones = mapper.selectList(boundQuery); List<ParkBindInfo> phones = mapper.selectList(boundQuery);
if (phones != null && !phones.isEmpty()) { if (phones != null && !phones.isEmpty()) {
boolean equals = phones.get(0).getPhone().equals(info.getPhone()); boolean equals = phones.get(0).getUserId().equals(info.getUserId());
if (!equals) { if (!equals) {
return ResponseGenerator.fail(StatusCode.BUSINESS_ERROR, "当前手机号已被绑定"); return ResponseGenerator.fail(StatusCode.BUSINESS_ERROR, "当前手机号已被绑定");
} }
......
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