|
@@ -151,11 +151,9 @@ public class SysRegisterInfoServiceImpl implements ISysRegisterInfoService {
|
151
|
151
|
@SuppressWarnings("unchecked")
|
152
|
152
|
@Override
|
153
|
153
|
public SysRegisterInfoVo queryRegisterInfo() {
|
154
|
|
-
|
155
|
154
|
List<SysRegisterinfo> list = baseMapper.selectList();
|
156
|
155
|
AtomicReference<SysRegisterInfoVo> vo = new AtomicReference<>(new SysRegisterInfoVo());
|
157
|
156
|
list.stream().findFirst().ifPresent(p -> {
|
158
|
|
-
|
159
|
157
|
String base64Info = p.getRegisterInfo();
|
160
|
158
|
byte[] result = Base64.getDecoder().decode(base64Info.getBytes());
|
161
|
159
|
JSONObject obj = JSONObject.parseObject(new String(result, StandardCharsets.UTF_8));
|
|
@@ -198,18 +196,6 @@ public class SysRegisterInfoServiceImpl implements ISysRegisterInfoService {
|
198
|
196
|
|
199
|
197
|
RedisUtils.setCacheObject(CacheNames.CUSTOM_PUB_KEY,customerPublicKey);
|
200
|
198
|
RedisUtils.setCacheObject(CacheNames.CUSTOM_PRI_KEY,customerPrivateKey);
|
201
|
|
-
|
202
|
|
- //String seckey = YcEncryptUtil.getBalanceSecretKey(customerPublicKey,"20082016134101023897");
|
203
|
|
- //byte[] key = YcEncryptUtil.hexToByte(StrUtil.subSuf(seckey,3));
|
204
|
|
- //String cardValue = YcEncryptUtil.parseByte2HexStr("");
|
205
|
|
- //String encryptValue = SecureUtil.desede(key).encryptHex("17.9", StandardCharsets.UTF_8);
|
206
|
|
- //String encryptValue1 = SecureUtil.des(key).encryptHex("17.9".getBytes(StandardCharsets.UTF_8));
|
207
|
|
- //String encryptValue2 = SecureUtil.des(key).decryptStr("ea0ea7d3e6f50986");
|
208
|
|
- //byte[] data = YcEncryptUtil.hexToByte("01000000827801BF2D965037ED88D46FB8A8C4C9636D8BF149BB729D");
|
209
|
|
- //String encryptValue2 = SecureUtil.desede(key).decryptStr(data);
|
210
|
|
-
|
211
|
|
- //log.info("encryptValue-{}", encryptValue.getBytes());
|
212
|
|
-
|
213
|
199
|
});
|
214
|
200
|
return vo.get();
|
215
|
201
|
}
|