init
This commit is contained in:
@@ -73,11 +73,6 @@ public class LoginManager {
|
||||
if(user == null){
|
||||
throw new ServiceException("用户不存在或密码错误");
|
||||
}
|
||||
/*String imei = ServletUtils.getImei();
|
||||
UserForbidManager.CheckForbid forbid = userForbidManager.checkForbid(user.getId(), user.getUsercode(), imei, ServletUtils.getClientIP());
|
||||
if(forbid != null && forbid.isForbid()){
|
||||
throw new ServiceException(forbid.getMessage());
|
||||
}*/
|
||||
if(user.getStatus() != 0){
|
||||
throw new ServiceException("用户已封禁,请联系客服");
|
||||
}
|
||||
@@ -180,6 +175,7 @@ public class LoginManager {
|
||||
add.setType(0);
|
||||
add.setPassword(BCrypt.hashpw(usercode+"用户手动滑稽安康黄鼠狼"));
|
||||
add.setMobile(mobile);
|
||||
add.setWxCode(mobile);
|
||||
add.setGender(UserGenderEnum.NONE.getCode());
|
||||
add.setAvatar(cos + UserGenderEnum.NONE.getDefaultAvatar());
|
||||
add.setImToken(IdUtil.simpleUUID());
|
||||
|
||||
Reference in New Issue
Block a user