|
|
@ -60,7 +60,7 @@ public class ApiActUserRelationController { |
|
|
|
Result isVolunteer = appUserService.getVolunteerCountById(tokenDto); |
|
|
|
int code = isVolunteer.getCode(); |
|
|
|
if (code != 0) { |
|
|
|
//不是志愿者
|
|
|
|
// 不是志愿者
|
|
|
|
return isVolunteer; |
|
|
|
} |
|
|
|
Result<EpdcUserInfoResultDTO> userInfo = appUserService.getInfoById(tokenDto); |
|
|
@ -77,13 +77,7 @@ public class ApiActUserRelationController { |
|
|
|
actUserRelationDTO.setPartyFlag(YesOrNoEnum.NO.value()); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
String identityNo = epdcUserInfoResultDTO.getIdentityNo(); |
|
|
|
if (StringUtils.isEmpty(identityNo)) { |
|
|
|
// 身份证号码为空,需要重新认证志愿者
|
|
|
|
isVolunteer.setData(0); |
|
|
|
return isVolunteer; |
|
|
|
} |
|
|
|
String identityNoVerification = IdentityNoUtils.IdentityNoVerification(identityNo); |
|
|
|
if (StringUtils.isNotBlank(identityNoVerification)) { |
|
|
|
return new Result().error(identityNoVerification); |
|
|
|