|
|
@ -741,7 +741,10 @@ public class AppUserServiceImpl implements AppUserService { |
|
|
|
// IP地址
|
|
|
|
HttpServletRequest request = HttpContextUtils.getHttpServletRequest(); |
|
|
|
|
|
|
|
return this.dealWithUserRegisterState(userResult.getData(), openId, unionId, IpUtils.getIpAddr(request), formDto.getInviteUserId(), formDto.getGridId()); |
|
|
|
|
|
|
|
Result<EpdcAppAuthorizationDTO> result = this.dealWithUserRegisterState(userResult.getData(), openId, unionId, IpUtils.getIpAddr(request), formDto.getInviteUserId(), formDto.getGridId()); |
|
|
|
|
|
|
|
return result; |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
@ -758,16 +761,6 @@ public class AppUserServiceImpl implements AppUserService { |
|
|
|
} |
|
|
|
epdcAppUserRegisterFormDTO.setWxCode(formDto.getWxCode()); |
|
|
|
Result<EpdcAppAuthorizationDTO> maV2Token = this.getMaV2Token(epdcAppUserRegisterFormDTO); |
|
|
|
// 注册埋点
|
|
|
|
if (maV2Token.success()) { |
|
|
|
PointLogFormDTO pointLogFormDTO = new PointLogFormDTO(); |
|
|
|
pointLogFormDTO.setType(BehaviorEnum.POINTS_REGISTER_RULES.getValue()); |
|
|
|
pointLogFormDTO.setUserId(maV2Token.getData().getUserId()); |
|
|
|
pointFeignClient.updataPoint(pointLogFormDTO); |
|
|
|
} else { |
|
|
|
log.error("报错:"+maV2Token.getMsg() + "-" + maV2Token.toString()); |
|
|
|
} |
|
|
|
|
|
|
|
return maV2Token; |
|
|
|
} |
|
|
|
|
|
|
@ -987,6 +980,11 @@ public class AppUserServiceImpl implements AppUserService { |
|
|
|
Result<CachingUserInfoDTO> cachingUserResult = userFeignClient.needCachingUserInfoByUserId(tokenDto.getUserId()); |
|
|
|
CachingUserInfoDTO cachingUserInfoDTO = cachingUserResult.getData(); |
|
|
|
EpdcAppAuthorizationDTO authorizationDto = cachingUserInfoForAuthorization(cachingUserInfoDTO, user.getGrid(), user.getState()); |
|
|
|
// 注册埋点
|
|
|
|
PointLogFormDTO pointLogFormDTO = new PointLogFormDTO(); |
|
|
|
pointLogFormDTO.setType(BehaviorEnum.POINTS_REGISTER_RULES.getValue()); |
|
|
|
pointLogFormDTO.setUserId(authorizationDto.getUserId()); |
|
|
|
pointFeignClient.updataPoint(pointLogFormDTO); |
|
|
|
|
|
|
|
// 党员认证失败
|
|
|
|
if (100006001 == completeResult.getCode()) { |
|
|
@ -996,10 +994,11 @@ public class AppUserServiceImpl implements AppUserService { |
|
|
|
} |
|
|
|
// 更新社群用户党员标识并加入关联的所有网格党员群
|
|
|
|
boolean partyFlag = UserTagUtils.containIdentity(cachingUserInfoDTO.getUserTagInfos(), UserTagEnum.PARTY_MEMBER); |
|
|
|
|
|
|
|
if (partyFlag) { |
|
|
|
initPartyGroupInfo(cachingUserInfoDTO); |
|
|
|
// 积分埋点 党员认证规则
|
|
|
|
PointLogFormDTO pointLogFormDTO = new PointLogFormDTO(); |
|
|
|
pointLogFormDTO = new PointLogFormDTO(); |
|
|
|
pointLogFormDTO.setType(BehaviorEnum.POINTS_PARTY_AUTHENTICATION_RULES.getValue()); |
|
|
|
pointLogFormDTO.setUserId(tokenDto.getUserId()); |
|
|
|
pointFeignClient.updataPoint(pointLogFormDTO); |
|
|
|