补充trim
This commit is contained in:
parent
2100896789
commit
af59e69ca9
|
|
@ -637,6 +637,7 @@ public class OAuth2Controller extends BaseController {
|
|||
}
|
||||
|
||||
// 获取到用户信息,进行本地登录处理
|
||||
userInfo.setIdCard(StringUtils.trimToEmpty(userInfo.getIdCard()));
|
||||
log.info("统一认证平台OAuth2回调接口,获取到用户信息,requestId:{},用户信息:{}", requestId, JSON.toJSONString(userInfo));
|
||||
|
||||
// 根据证件号查询IMS用户信息
|
||||
|
|
|
|||
|
|
@ -154,6 +154,8 @@ public class TUsersappController {
|
|||
// 使用RSA解密前端传来的数据
|
||||
String identityNo = RSAUTil.decrypt(identityNoEncrypted, privateKeyString);
|
||||
String mobile = RSAUTil.decrypt(mobileEncrypted, privateKeyString);
|
||||
identityNo = StringUtils.trimToEmpty(identityNo);
|
||||
mobile = StringUtils.trimToEmpty(mobile);
|
||||
|
||||
// 计算MD5摘要(用于去重)
|
||||
String identityNoAbstr = DigestUtils.md5DigestAsHex(identityNo.getBytes(StandardCharsets.UTF_8));
|
||||
|
|
|
|||
Loading…
Reference in New Issue