| | |
| | | return loginResponse; |
| | | } |
| | | |
| | | public LoginResponse wxOpenIdLogin(String wxOpenId, String phone, CustomerUserTypeEnum userType) { |
| | | public LoginResponse wxOpenIdLogin(String wxOpenId, String phone, String workerNo, CustomerUserTypeEnum userType) { |
| | | // 查询用户信息 |
| | | Wrapper wrapper = Wrappers.<Customer>lambdaQuery() |
| | | .eq(Customer::getUserType, userType.getCode()) |
| | |
| | | // 可能已经注册的用户,再获取一次用户 |
| | | customer = customerService.getOne(wrapper, false); |
| | | } |
| | | |
| | | if (StrUtil.isNotBlank(workerNo)) { |
| | | // 绑定顾问岗位ID数据 |
| | | customerService.userBindClassConsultWorkerId(customer.getCustomerId(), workerNo); |
| | | } |
| | | |
| | | // 用户登录信息 |
| | | LoginResponse loginResponse = customerService.wrapperLoginResponse(customer, new LoginRequest()); |
| | | return loginResponse; |