|
@@ -151,11 +151,9 @@ public class SysRegisterInfoServiceImpl implements ISysRegisterInfoService {
|
|
|
@SuppressWarnings("unchecked")
|
|
@SuppressWarnings("unchecked")
|
|
|
@Override
|
|
@Override
|
|
|
public SysRegisterInfoVo queryRegisterInfo() {
|
|
public SysRegisterInfoVo queryRegisterInfo() {
|
|
|
-
|
|
|
|
|
List<SysRegisterinfo> list = baseMapper.selectList();
|
|
List<SysRegisterinfo> list = baseMapper.selectList();
|
|
|
AtomicReference<SysRegisterInfoVo> vo = new AtomicReference<>(new SysRegisterInfoVo());
|
|
AtomicReference<SysRegisterInfoVo> vo = new AtomicReference<>(new SysRegisterInfoVo());
|
|
|
list.stream().findFirst().ifPresent(p -> {
|
|
list.stream().findFirst().ifPresent(p -> {
|
|
|
-
|
|
|
|
|
String base64Info = p.getRegisterInfo();
|
|
String base64Info = p.getRegisterInfo();
|
|
|
byte[] result = Base64.getDecoder().decode(base64Info.getBytes());
|
|
byte[] result = Base64.getDecoder().decode(base64Info.getBytes());
|
|
|
JSONObject obj = JSONObject.parseObject(new String(result, StandardCharsets.UTF_8));
|
|
JSONObject obj = JSONObject.parseObject(new String(result, StandardCharsets.UTF_8));
|
|
@@ -198,18 +196,6 @@ public class SysRegisterInfoServiceImpl implements ISysRegisterInfoService {
|
|
|
|
|
|
|
|
RedisUtils.setCacheObject(CacheNames.CUSTOM_PUB_KEY,customerPublicKey);
|
|
RedisUtils.setCacheObject(CacheNames.CUSTOM_PUB_KEY,customerPublicKey);
|
|
|
RedisUtils.setCacheObject(CacheNames.CUSTOM_PRI_KEY,customerPrivateKey);
|
|
RedisUtils.setCacheObject(CacheNames.CUSTOM_PRI_KEY,customerPrivateKey);
|
|
|
-
|
|
|
|
|
- //String seckey = YcEncryptUtil.getBalanceSecretKey(customerPublicKey,"20082016134101023897");
|
|
|
|
|
- //byte[] key = YcEncryptUtil.hexToByte(StrUtil.subSuf(seckey,3));
|
|
|
|
|
- //String cardValue = YcEncryptUtil.parseByte2HexStr("");
|
|
|
|
|
- //String encryptValue = SecureUtil.desede(key).encryptHex("17.9", StandardCharsets.UTF_8);
|
|
|
|
|
- //String encryptValue1 = SecureUtil.des(key).encryptHex("17.9".getBytes(StandardCharsets.UTF_8));
|
|
|
|
|
- //String encryptValue2 = SecureUtil.des(key).decryptStr("ea0ea7d3e6f50986");
|
|
|
|
|
- //byte[] data = YcEncryptUtil.hexToByte("01000000827801BF2D965037ED88D46FB8A8C4C9636D8BF149BB729D");
|
|
|
|
|
- //String encryptValue2 = SecureUtil.desede(key).decryptStr(data);
|
|
|
|
|
-
|
|
|
|
|
- //log.info("encryptValue-{}", encryptValue.getBytes());
|
|
|
|
|
-
|
|
|
|
|
});
|
|
});
|
|
|
return vo.get();
|
|
return vo.get();
|
|
|
}
|
|
}
|