记得上下班打卡 | git大法好,push需谨慎

Commit fa946d33 authored by 张国柄's avatar 张国柄

~api:开通数字账号实名问题;

parent 225c8821
......@@ -201,6 +201,10 @@ public class AdamRdmService {
return vo;
}
public AdamRealInfoVo getRealInfoVoByUidPlain(String uid) {
return (AdamRealInfoVo) redisUtil.get(AdamRedisConst.INFO_REAL_NAME.concat(uid));
}
public void delRealInfoVoByUid(String uid) {
redisUtil.del(AdamRedisConst.INFO_REAL_NAME.concat(uid));
}
......
......@@ -92,7 +92,7 @@ public class AdamUserBusiAcctServiceImpl implements IAdamUserBusiAcctService {
* @return ResponseDto<AdamUserBizAcctVo>
*/
private ResponseDto<AdamUserBizAcctVo> openAccountForNftZXin(String uid, String name, String idCard, String mobile) {
AdamRealInfoVo realInfoVo = adamRdmService.getRealInfoVoByUid(uid);
AdamRealInfoVo realInfoVo = adamRdmService.getRealInfoVoByUidPlain(uid);
if (StringUtils.isBlank(name) || name.contains("*")) {
if (null == realInfoVo) {
return ResponseDto.failure(ErrorMapping.get("10102"));
......@@ -103,8 +103,11 @@ public class AdamUserBusiAcctServiceImpl implements IAdamUserBusiAcctService {
adamUserService.identityForUpsert(uid, name, idCard, mobile, true);
}
} else {
if (null == realInfoVo || (3 != realInfoVo.getNode() && !realInfoVo.getName().equals(name) && !realInfoVo.getIdCard().equals(idCard))) {
if (null == realInfoVo || (3 != realInfoVo.getNode() && (!realInfoVo.getName().equals(name) || !realInfoVo.getIdCard().equals(idCard)))) {
adamUserService.identityForUpsert(uid, name, idCard, mobile, true);
} else {
name = realInfoVo.getName();
idCard = realInfoVo.getIdCard();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment