|
@ -630,6 +630,12 @@ public class WlyyLoginEndpoint extends AbstractEndpoint {
|
|
try{
|
|
try{
|
|
OauthKeypairDO keypairDO = oauthKeypairDao.findByCode("hwlyyKey");
|
|
OauthKeypairDO keypairDO = oauthKeypairDao.findByCode("hwlyyKey");
|
|
KeyPair keyPair = (KeyPair)SerializeUtil.unSerialize(keypairDO.getKeyPair());
|
|
KeyPair keyPair = (KeyPair)SerializeUtil.unSerialize(keypairDO.getKeyPair());
|
|
|
|
//解密idcard,中山医院id通过openid获取,i健康通过直接加密传输
|
|
|
|
if(org.apache.commons.lang3.StringUtils.isNotBlank(idcard)){
|
|
|
|
rs.put("idcard",com.yihu.jw.security.utils.RSAUtils.decryptBase64(idcard, keyPair));
|
|
|
|
}else {
|
|
|
|
rs.put("idcard",idcard);
|
|
|
|
}
|
|
//解密wechatId
|
|
//解密wechatId
|
|
if(org.apache.commons.lang3.StringUtils.isNotBlank(wechatId)){
|
|
if(org.apache.commons.lang3.StringUtils.isNotBlank(wechatId)){
|
|
String wxid =com.yihu.jw.security.utils.RSAUtils.decryptBase64(wechatId, keyPair);
|
|
String wxid =com.yihu.jw.security.utils.RSAUtils.decryptBase64(wechatId, keyPair);
|
|
@ -652,13 +658,6 @@ public class WlyyLoginEndpoint extends AbstractEndpoint {
|
|
rs.put("wechatId",wechatId);
|
|
rs.put("wechatId",wechatId);
|
|
}
|
|
}
|
|
|
|
|
|
//解密idcard,中山医院id通过openid获取,i健康通过直接加密传输
|
|
|
|
if(org.apache.commons.lang3.StringUtils.isNotBlank(idcard)){
|
|
|
|
rs.put("idcard",com.yihu.jw.security.utils.RSAUtils.decryptBase64(idcard, keyPair));
|
|
|
|
}else {
|
|
|
|
rs.put("idcard",idcard);
|
|
|
|
}
|
|
|
|
|
|
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
logger.error(e);
|
|
logger.error(e);
|
|
}
|
|
}
|