|
@@ -214,7 +214,7 @@ public class LoginServiceImpl implements IRegisterLoginService {
|
|
|
return ResultVO.ok(userLoginVO);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+ this.accountCheck(username, userData);
|
|
|
|
|
|
HttpStatusEnum checkRegisterEnum = this.checkRegister(userData.getGameId(), username, password);
|
|
|
if (!Objects.equals(checkRegisterEnum, HttpStatusEnum.SUCCESS)) {
|
|
@@ -264,7 +264,7 @@ public class LoginServiceImpl implements IRegisterLoginService {
|
|
|
return ResultVO.ok(userLoginVO);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+ this.accountCheck(mobile, userData);
|
|
|
|
|
|
user = userCreateSave(userData, mobile, null, mobile, null, null);
|
|
|
|
|
@@ -273,13 +273,12 @@ public class LoginServiceImpl implements IRegisterLoginService {
|
|
|
}
|
|
|
|
|
|
private void accountCheck(String userName, UserData userData) {
|
|
|
-
|
|
|
- if (Strings.isBlank(userData.getAndroidId())) {
|
|
|
+
|
|
|
+ if (!Objects.equals(userData.getGameId(), 36L)) {
|
|
|
return;
|
|
|
}
|
|
|
- Game game = gameService.getById(userData.getGameId());
|
|
|
-
|
|
|
- if (game == null || !Objects.equals(game.getSuperGameId(), 12L)) {
|
|
|
+
|
|
|
+ if (Strings.isBlank(userData.getAndroidId())) {
|
|
|
return;
|
|
|
}
|
|
|
|