| | |
| | | Object certUserInfo = certUser.getData(); |
| | | boolean userCertified = false; |
| | | if (certUserInfo != null) { |
| | | PartyBuildingMemberVO certUserVo = (PartyBuildingMemberVO) certUserInfo; |
| | | //已认证党员身份,直接返回 |
| | | userCertified = certUserVo.getAuditResult() == 1; |
| | | try { |
| | | PartyBuildingMemberVO certUserVo = JSONObject.parseObject(JSONObject.toJSONString(certUser.getData()), PartyBuildingMemberVO.class); |
| | | //已认证党员身份,直接返回 |
| | | userCertified = certUserVo.getAuditResult() == 1; |
| | | }catch (Exception e){} |
| | | } |
| | | //匹配手机,验证是否进行自动确认 |
| | | if (userCertified) { |
| | |
| | | */ |
| | | @GetMapping("usercertification") |
| | | R userCertification(@RequestParam("id")Long id){ |
| | | ComPbMemberDO comPbMemberDO = comPbMemberService.getOne(new QueryWrapper<ComPbMemberDO>().lambda().eq(ComPbMemberDO::getUserId, id)); |
| | | ComPbMemberDO comPbMemberDO = comPbMemberService.getOne(new QueryWrapper<ComPbMemberDO>().lambda().eq(ComPbMemberDO::getUserId, id).eq(ComPbMemberDO::getAuditResult, 1)); |
| | | return R.ok(comPbMemberDO); |
| | | } |
| | | |