diff --git a/broker/src/main/java/com/xiaoleilu/loServer/action/RouteAction.java b/broker/src/main/java/com/xiaoleilu/loServer/action/RouteAction.java index 08c35e12..82f4400a 100755 --- a/broker/src/main/java/com/xiaoleilu/loServer/action/RouteAction.java +++ b/broker/src/main/java/com/xiaoleilu/loServer/action/RouteAction.java @@ -57,7 +57,7 @@ public class RouteAction extends Action { try { bytes = Base64.getDecoder().decode(str); } catch (IllegalArgumentException e) { - sendResponse(response, ErrorCode.ERROR_CODE_SECRECT_KEY_MISMATCH, null, base64Response); + sendResponse(response, ErrorCode.ERROR_CODE_INVALID_DATA, null, base64Response); return true; } @@ -65,7 +65,7 @@ public class RouteAction extends Action { byte[] cbytes = Base64.getDecoder().decode(cid); cbytes = AES.AESDecrypt(cbytes, "", true); if (cbytes == null) { - sendResponse(response, ErrorCode.ERROR_CODE_SECRECT_KEY_MISMATCH, null, base64Response); + sendResponse(response, ErrorCode.ERROR_CODE_INVALID_DATA, null, base64Response); return true; } cid = new String(cbytes); @@ -74,7 +74,7 @@ public class RouteAction extends Action { byte[] ubytes = Base64.getDecoder().decode(uid); ubytes = AES.AESDecrypt(ubytes, "", true); if (ubytes == null) { - sendResponse(response, ErrorCode.ERROR_CODE_SECRECT_KEY_MISMATCH, null, base64Response); + sendResponse(response, ErrorCode.ERROR_CODE_INVALID_DATA, null, base64Response); return true; } uid = new String(ubytes);