|
@@ -100,15 +100,24 @@ public class TaUserServiceImpl implements ITaUserService {
|
100
|
100
|
public ResponseBean login(String loginName,String code) {
|
101
|
101
|
ResponseBean response = new ResponseBean();
|
102
|
102
|
|
103
|
|
- // 校验
|
|
103
|
+ // 校验手机号和验证码
|
104
|
104
|
iCode.checkPhoneAndCode(loginName, code);
|
105
|
105
|
|
106
|
106
|
Map<String,Object> map = Maps.newHashMap();
|
107
|
107
|
map.put("loginName",loginName);
|
108
|
108
|
TaUser currentUser = taUserMapper.selectByLoginName(map);
|
|
109
|
+ if (null == currentUser) {
|
|
110
|
+ response.addError("未注册,请先注册");
|
|
111
|
+ return response;
|
|
112
|
+ }
|
109
|
113
|
|
110
|
|
- TaUserVO taUserVO = new TaUserVO();
|
|
114
|
+ // 校验用户
|
|
115
|
+ checkVerifyStatusUser(currentUser);
|
111
|
116
|
|
|
117
|
+ // 查询房产
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+ TaUserVO taUserVO = new TaUserVO();
|
112
|
121
|
BeanUtils.copyProperties(currentUser, taUserVO);
|
113
|
122
|
response.addSuccess(taUserVO);
|
114
|
123
|
return response;
|