|
@@ -181,6 +181,10 @@ public class LoginServiceImpl implements LoginService {
|
|
}
|
|
}
|
|
//处理比对密码
|
|
//处理比对密码
|
|
UserLoginVo baseUser = loginMapper.getLoginOrganizeUserByMobileOrEmail(mobileOrEmail);
|
|
UserLoginVo baseUser = loginMapper.getLoginOrganizeUserByMobileOrEmail(mobileOrEmail);
|
|
|
|
+ // 机构下线,登录失败
|
|
|
|
+ if (91 == baseUser.getClubStatus()) {
|
|
|
|
+ return ResponseJson.error(-1,"您的企业账号已被冻结,请联系客服处理", null);
|
|
|
|
+ }
|
|
if (null != baseUser) {
|
|
if (null != baseUser) {
|
|
// 绑定微信信息
|
|
// 绑定微信信息
|
|
Integer operationUser = loginMapper.getOperationUser(mobileOrEmail);
|
|
Integer operationUser = loginMapper.getOperationUser(mobileOrEmail);
|
|
@@ -192,8 +196,8 @@ public class LoginServiceImpl implements LoginService {
|
|
operationVo.setUserType(1);
|
|
operationVo.setUserType(1);
|
|
operationVo.setUserId(baseUser.getUserId());
|
|
operationVo.setUserId(baseUser.getUserId());
|
|
operationVo.setClubId(baseUser.getClubId());
|
|
operationVo.setClubId(baseUser.getClubId());
|
|
- operationVo.setMobile(baseUser.getMobile());
|
|
|
|
- operationVo.setLinkName(baseUser.getUserName());
|
|
|
|
|
|
+ operationVo.setMobile(baseUser.getBindMobile());
|
|
|
|
+ operationVo.setLinkName(baseUser.getClubLinkMan());
|
|
operationVo.setStatus(2);
|
|
operationVo.setStatus(2);
|
|
operationVo.setUnionId(unionId);
|
|
operationVo.setUnionId(unionId);
|
|
operationVo.setBindTime(new Date());
|
|
operationVo.setBindTime(new Date());
|
|
@@ -802,16 +806,16 @@ public class LoginServiceImpl implements LoginService {
|
|
loginUser.setToken(token);
|
|
loginUser.setToken(token);
|
|
if (null != loginUser.getClubStatus() && 91 == loginUser.getClubStatus()) {
|
|
if (null != loginUser.getClubStatus() && 91 == loginUser.getClubStatus()) {
|
|
//机构
|
|
//机构
|
|
- return ResponseJson.error(-2, "您的企业账号已被冻结,请联系客服处理", null);
|
|
|
|
|
|
+ return ResponseJson.error(-1, "您的企业账号已被冻结,请联系客服处理", loginUser);
|
|
}
|
|
}
|
|
// 供应商
|
|
// 供应商
|
|
if (null != loginUser.getShopStatus() && null != loginUser.getUserIdentity() && 3 == loginUser.getUserIdentity()) {
|
|
if (null != loginUser.getShopStatus() && null != loginUser.getUserIdentity() && 3 == loginUser.getUserIdentity()) {
|
|
|
|
|
|
if (3 == loginUser.getShopStatus()) {
|
|
if (3 == loginUser.getShopStatus()) {
|
|
- return ResponseJson.error(-2, "您的企业账号正在加速审核中,审核通过后即可登录", null);
|
|
|
|
|
|
+ return ResponseJson.error(-1, "您的企业账号正在加速审核中,审核通过后即可登录", loginUser);
|
|
}
|
|
}
|
|
if (91 == loginUser.getShopStatus()) {
|
|
if (91 == loginUser.getShopStatus()) {
|
|
- return ResponseJson.error(-2, "您的企业账号已被冻结,请联系客服处理", null);
|
|
|
|
|
|
+ return ResponseJson.error(-1, "您的企业账号已被冻结,请联系客服处理", loginUser);
|
|
}
|
|
}
|
|
if (92 == loginUser.getShopStatus()) {
|
|
if (92 == loginUser.getShopStatus()) {
|
|
return ResponseJson.error(-3, "您的企业账号审核未通过", loginUser);
|
|
return ResponseJson.error(-3, "您的企业账号审核未通过", loginUser);
|
|
@@ -1114,7 +1118,7 @@ public class LoginServiceImpl implements LoginService {
|
|
if (StringUtils.isBlank(invitationCode)) {
|
|
if (StringUtils.isBlank(invitationCode)) {
|
|
return ResponseJson.error("邀请码不能为空", null);
|
|
return ResponseJson.error("邀请码不能为空", null);
|
|
}
|
|
}
|
|
- UserLoginVo operation = loginMapper.getOperationUserByInvitationCode(invitationCode);
|
|
|
|
|
|
+ UserLoginVo operation = loginMapper.getOperationUserByInvitationCode(invitationCode, 0);
|
|
if (operation == null) {
|
|
if (operation == null) {
|
|
return ResponseJson.error("邀请码错误", null);
|
|
return ResponseJson.error("邀请码错误", null);
|
|
}
|
|
}
|
|
@@ -1235,12 +1239,13 @@ public class LoginServiceImpl implements LoginService {
|
|
|
|
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- // 联合丽格没有运营人员为机构运营人员
|
|
|
|
// 机构Id
|
|
// 机构Id
|
|
operationPo.setClubId(operation.getClubId());
|
|
operationPo.setClubId(operation.getClubId());
|
|
// 用户类型
|
|
// 用户类型
|
|
operationPo.setUserType(1);
|
|
operationPo.setUserType(1);
|
|
}
|
|
}
|
|
|
|
+ operationPo.setUpdateTime(new Date());
|
|
|
|
+ operationPo.setBindTime(new Date());
|
|
// 更新运营人员信息
|
|
// 更新运营人员信息
|
|
operationMapper.updateOperationByInvitation(operationPo);
|
|
operationMapper.updateOperationByInvitation(operationPo);
|
|
// 返回登录校验结果
|
|
// 返回登录校验结果
|
|
@@ -1307,7 +1312,8 @@ public class LoginServiceImpl implements LoginService {
|
|
operationPo.setClubId(operation.getClubId());
|
|
operationPo.setClubId(operation.getClubId());
|
|
// 用户类型
|
|
// 用户类型
|
|
operationPo.setUserType(1);
|
|
operationPo.setUserType(1);
|
|
-
|
|
|
|
|
|
+ operationPo.setUpdateTime(new Date());
|
|
|
|
+ operationPo.setBindTime(new Date());
|
|
// 更新运营人员信息
|
|
// 更新运营人员信息
|
|
operationMapper.updateOperationByInvitation(operationPo);
|
|
operationMapper.updateOperationByInvitation(operationPo);
|
|
// 返回登录校验结果
|
|
// 返回登录校验结果
|