|
|
@ -195,7 +195,7 @@ public class ThirdLoginServiceImpl implements ThirdLoginService, ResultDataResol |
|
|
|
StaffLatestAgencyResultDTO staffLatestAgencyResultDTO = latestStaffWechat.getData(); |
|
|
|
//2022.11.24校验下用户是否被禁用
|
|
|
|
//2.1根据手机号查询到用户信息 前端不跳转,暂时先注释吧
|
|
|
|
/* ThirdCustomerStaffFormDTO dto = new ThirdCustomerStaffFormDTO(); |
|
|
|
ThirdCustomerStaffFormDTO dto = new ThirdCustomerStaffFormDTO(); |
|
|
|
dto.setCustomerId(staffLatestAgencyResultDTO.getCustomerId()); |
|
|
|
dto.setMobile(staffLatestAgencyResultDTO.getMobile()); |
|
|
|
Result<List<CustomerStaffDTO>> customerStaffResult = epmetUserOpenFeignClient.getCustsomerStaffByIdAndPhone(dto); |
|
|
@ -203,9 +203,10 @@ public class ThirdLoginServiceImpl implements ThirdLoginService, ResultDataResol |
|
|
|
logger.error(String.format("手机验证码登录异常,手机号[%s],code[%s],msg[%s]", staffLatestAgencyResultDTO.getMobile(), customerStaffResult.getCode(), customerStaffResult.getMsg())); |
|
|
|
throw new RenException(customerStaffResult.getCode()); |
|
|
|
} |
|
|
|
// 8008 前端会提示:登录失效,请重新登录 跳转到登录界面。所以这里写死返回8008.
|
|
|
|
if("disabled".equals(customerStaffResult.getData().get(NumConstant.ZERO).getEnableFlag())){ |
|
|
|
throw new EpmetException(EpmetErrorCode.GOV_STAFF_DISABLED.getCode(),EpmetErrorCode.GOV_STAFF_DISABLED.getMsg(),EpmetErrorCode.GOV_STAFF_DISABLED.getMsg()); |
|
|
|
}*/ |
|
|
|
throw new EpmetException(EpmetErrorCode.PLEASE_LOGIN.getCode(),EpmetErrorCode.GOV_STAFF_DISABLED.getMsg(),EpmetErrorCode.GOV_STAFF_DISABLED.getMsg()); |
|
|
|
} |
|
|
|
|
|
|
|
//3.记录staff_wechat
|
|
|
|
this.savestaffwechat(staffLatestAgencyResultDTO.getStaffId(), userWechatDTO.getWxOpenId(), staffLatestAgencyResultDTO.getCustomerId()); |
|
|
|