修改用户表,新增user_type字段
对应修改 小程序登录方法,校验user_type字段
This commit is contained in:
parent
2b53048bda
commit
a8d9072a40
@ -281,6 +281,12 @@ public class AdminAuthServiceImpl implements AdminAuthService {
|
||||
createLoginLog(user.getId(), phoneNumber, logTypeEnum, LoginResultEnum.USER_DISABLED);
|
||||
throw exception(AUTH_LOGIN_USER_DISABLED);
|
||||
}
|
||||
// 校验账号是否为工厂用户
|
||||
if (user.getUserType() == 2) {
|
||||
createLoginLog(null, phoneNumber, logTypeEnum, LoginResultEnum.BAD_CREDENTIALS);
|
||||
throw exception(AUTH_MOBILE_NOT_EXISTS);
|
||||
}
|
||||
|
||||
//清空openId
|
||||
userService.emptyOpenId(reqVO.getOpenId());
|
||||
//绑定用户openId
|
||||
|
Loading…
Reference in New Issue
Block a user