|  |  | 
 |  |  |             return  null; | 
 |  |  |         } | 
 |  |  |         if(StringUtils.isNotBlank(c.getFaceImg())){ | 
 |  |  |             log.info("===================================="+path+c.getFaceImg()+"======start===="); | 
 |  |  |             info.setVisitorPhoto(ImageBase64Util.Image2Base64(path+c.getFaceImg())); | 
 |  |  |             log.info("===================================="+path+c.getFaceImg()+"========end==="); | 
 |  |  |         } | 
 |  |  |         if(info.getVisitorPhoto() == null){ | 
 |  |  |             log.info("===================================="+path+c.getFaceImg()+"======imgerror====="); | 
 |  |  |             return  null; | 
 |  |  |         } | 
 |  |  |         if(StringUtils.isNotBlank(c.getName())){ | 
 |  |  | 
 |  |  |                 info.setVisitorName(c.getName()); | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         if(StringUtils.isNotBlank(c.getCompanyName())){ | 
 |  |  |             char[] charArray = c.getCompanyName().toCharArray(); | 
 |  |  |             int length = charArray.length; | 
 |  |  | 
 |  |  |             info.setCertificateType(HKConstants.CertificateType.HUZHAO.getKey()+""); | 
 |  |  |             info.setCertificateNo(DESUtil.decrypt(Constants.EDS_PWD,  c.getIdcardNo())); | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         return info; | 
 |  |  |     } | 
 |  |  |  |