|
@@ -96,15 +96,15 @@ public class AuthController extends ControllerSupport {
|
|
|
}
|
|
|
|
|
|
User user = authService.login(loginInfo);
|
|
|
- //在线数据打点 start
|
|
|
- if(UserType.STUDENT.equals(user.getUserType())) {
|
|
|
- //在线学生登录打点
|
|
|
- ReportsUtil.report(new OnlineStudentReport(user.getRootOrgId(),user.getUserId()));
|
|
|
- }else if(UserType.COMMON.equals(user.getUserType())) {
|
|
|
- //在线用户登录打点
|
|
|
- ReportsUtil.report(new OnlineUserReport(user.getRootOrgId(),user.getUserId()));
|
|
|
+ // 在线数据打点 start
|
|
|
+ if (UserType.STUDENT.equals(user.getUserType())) {
|
|
|
+ // 在线学生登录打点
|
|
|
+ ReportsUtil.report(new OnlineStudentReport(user.getRootOrgId(), user.getUserId()));
|
|
|
+ } else if (UserType.COMMON.equals(user.getUserType())) {
|
|
|
+ // 在线用户登录打点
|
|
|
+ ReportsUtil.report(new OnlineUserReport(user.getRootOrgId(), user.getUserId()));
|
|
|
}
|
|
|
- //在线数据打点 end
|
|
|
+ // 在线数据打点 end
|
|
|
if (null != alwaysOK && alwaysOK) {
|
|
|
return new StatusResponseX<User>(user);
|
|
|
} else {
|
|
@@ -175,9 +175,9 @@ public class AuthController extends ControllerSupport {
|
|
|
@RequestParam(required = true) Boolean bound) {
|
|
|
|
|
|
Boolean hasBeBound = studentService.hasBeBound(phone);
|
|
|
- if (bound && !hasBeBound.equals(bound)) {
|
|
|
+ if (bound && !hasBeBound) {
|
|
|
throw new StatusException("002050", "手机号未被关联");
|
|
|
- } else if ((!bound) && hasBeBound.equals(bound)) {
|
|
|
+ } else if ((!bound) && hasBeBound) {
|
|
|
throw new StatusException("002050", "手机号已被关联");
|
|
|
}
|
|
|
|