|
|
@ -121,6 +121,7 @@ public class SysLoginService
|
|
|
|
TDoctor tDoctor = tDoctorMapper.selectTDoctorByPhone(username);
|
|
|
|
TDoctor tDoctor = tDoctorMapper.selectTDoctorByPhone(username);
|
|
|
|
if (Objects.isNull(tDoctor) || "2".equals(tDoctor.getDelFlag())) {
|
|
|
|
if (Objects.isNull(tDoctor) || "2".equals(tDoctor.getDelFlag())) {
|
|
|
|
// 未注册或已删除 返回flag app跳完善信息页面
|
|
|
|
// 未注册或已删除 返回flag app跳完善信息页面
|
|
|
|
|
|
|
|
log.info("user no register.");
|
|
|
|
ajax.put("flag", false);
|
|
|
|
ajax.put("flag", false);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
SysUser sysUser = userService.selectUserByUserName(username);
|
|
|
|
SysUser sysUser = userService.selectUserByUserName(username);
|
|
|
@ -143,6 +144,7 @@ public class SysLoginService
|
|
|
|
ajax.put("flag", true);
|
|
|
|
ajax.put("flag", true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
ajax.put(Constants.REQUEST_FROM, "app");
|
|
|
|
ajax.put(Constants.REQUEST_FROM, "app");
|
|
|
|
|
|
|
|
log.info("login result is {}", ajax);
|
|
|
|
return ajax;
|
|
|
|
return ajax;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|