|
|
@@ -128,14 +128,14 @@ public class YkcMsgHandle {
|
|
|
//消息体
|
|
|
byte[] respone_msg = Arrays.copyOfRange(response, 6, response.length - 2);
|
|
|
if (encry == 0) {
|
|
|
- logger.info("{},未加密消息,frame:{},data:{}",deviceConnectionMsg.getDeviceId(),framType, DataConversion.bytesToHexString(respone_msg));
|
|
|
+ logger.info("{},un_encry_msg,frame:{},data:{}",deviceConnectionMsg.getDeviceId(),framType, DataConversion.bytesToHexString(respone_msg));
|
|
|
} else {
|
|
|
try {
|
|
|
String key = redisCache.getCacheMapValue(RedisConstant.YKC_KEY_MAP,deviceConnectionMsg.getDeviceId());
|
|
|
// String key = redisCache.getCacheObject(RedisConstant.KEYS + deviceConnectionMsg.getDeviceId());
|
|
|
respone_msg = Encrytion.decrypt(respone_msg, key.getBytes());
|
|
|
|
|
|
- logger.info("{},加密消息,frame:{},data:{}",deviceConnectionMsg.getDeviceId(),framType, DataConversion.bytesToHexString(respone_msg));
|
|
|
+ logger.info("{},encry_msg,frame:{},data:{}",deviceConnectionMsg.getDeviceId(),framType, DataConversion.bytesToHexString(respone_msg));
|
|
|
} catch (Exception e) {
|
|
|
logger.info("{},ykc->msg decrypt Exception",deviceConnectionMsg.getDeviceId());
|
|
|
e.printStackTrace();
|