|
|
@ -644,21 +644,21 @@ public class AppUserServiceImpl implements AppUserService { |
|
|
|
WxMaJscode2SessionResult wxMaResult = this.getWxMaUser(formDto.getWxCode()); |
|
|
|
String openId = wxMaResult.getOpenid(); |
|
|
|
String unionId = wxMaResult.getUnionid(); |
|
|
|
if (null == formDto.getGridId()) { |
|
|
|
// 获取用户绑定网格信息
|
|
|
|
Result<EpdcUserRegisterInfoResultDTO> dtoResult = userFeignClient.getUserLastSwitchGrid(openId); |
|
|
|
if (!dtoResult.success()) { |
|
|
|
return new Result<EpdcAppAuthorizationDTO>().error(dtoResult.getMsg()); |
|
|
|
} |
|
|
|
EpdcUserRegisterInfoResultDTO userDto = dtoResult.getData(); |
|
|
|
if (userDto.getRegisterState() != NumConstant.TWO) { |
|
|
|
EpdcAppAuthorizationDTO resultDto = new EpdcAppAuthorizationDTO(); |
|
|
|
resultDto.setUserState(NumConstant.FIVE_STR); |
|
|
|
return new Result<EpdcAppAuthorizationDTO>().ok(resultDto); |
|
|
|
} else { |
|
|
|
formDto.setGridId(userDto.getGridId()); |
|
|
|
} |
|
|
|
} |
|
|
|
// if (null == formDto.getGridId()) {
|
|
|
|
// // 获取用户绑定网格信息
|
|
|
|
// Result<EpdcUserRegisterInfoResultDTO> dtoResult = userFeignClient.getUserLastSwitchGrid(openId);
|
|
|
|
// if (!dtoResult.success()) {
|
|
|
|
// return new Result<EpdcAppAuthorizationDTO>().error(dtoResult.getMsg());
|
|
|
|
// }
|
|
|
|
// EpdcUserRegisterInfoResultDTO userDto = dtoResult.getData();
|
|
|
|
// if (userDto.getRegisterState() != NumConstant.TWO) {
|
|
|
|
// EpdcAppAuthorizationDTO resultDto = new EpdcAppAuthorizationDTO();
|
|
|
|
// resultDto.setUserState(NumConstant.FIVE_STR);
|
|
|
|
// return new Result<EpdcAppAuthorizationDTO>().ok(resultDto);
|
|
|
|
// } else {
|
|
|
|
// formDto.setGridId(userDto.getGridId());
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// 查询当前微信注册状态
|
|
|
|
EpdcCheckUserRegisterFromDTO checkFromDto = new EpdcCheckUserRegisterFromDTO(); |
|
|
|
checkFromDto.setOpenId(openId); |
|
|
|