update
This commit is contained in:
@@ -57,7 +57,7 @@ public class RouteAction extends Action {
|
|||||||
try {
|
try {
|
||||||
bytes = Base64.getDecoder().decode(str);
|
bytes = Base64.getDecoder().decode(str);
|
||||||
} catch (IllegalArgumentException e) {
|
} catch (IllegalArgumentException e) {
|
||||||
sendResponse(response, ErrorCode.ERROR_CODE_SECRECT_KEY_MISMATCH, null, base64Response);
|
sendResponse(response, ErrorCode.ERROR_CODE_INVALID_DATA, null, base64Response);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -65,7 +65,7 @@ public class RouteAction extends Action {
|
|||||||
byte[] cbytes = Base64.getDecoder().decode(cid);
|
byte[] cbytes = Base64.getDecoder().decode(cid);
|
||||||
cbytes = AES.AESDecrypt(cbytes, "", true);
|
cbytes = AES.AESDecrypt(cbytes, "", true);
|
||||||
if (cbytes == null) {
|
if (cbytes == null) {
|
||||||
sendResponse(response, ErrorCode.ERROR_CODE_SECRECT_KEY_MISMATCH, null, base64Response);
|
sendResponse(response, ErrorCode.ERROR_CODE_INVALID_DATA, null, base64Response);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
cid = new String(cbytes);
|
cid = new String(cbytes);
|
||||||
@@ -74,7 +74,7 @@ public class RouteAction extends Action {
|
|||||||
byte[] ubytes = Base64.getDecoder().decode(uid);
|
byte[] ubytes = Base64.getDecoder().decode(uid);
|
||||||
ubytes = AES.AESDecrypt(ubytes, "", true);
|
ubytes = AES.AESDecrypt(ubytes, "", true);
|
||||||
if (ubytes == null) {
|
if (ubytes == null) {
|
||||||
sendResponse(response, ErrorCode.ERROR_CODE_SECRECT_KEY_MISMATCH, null, base64Response);
|
sendResponse(response, ErrorCode.ERROR_CODE_INVALID_DATA, null, base64Response);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
uid = new String(ubytes);
|
uid = new String(ubytes);
|
||||||
|
|||||||
Reference in New Issue
Block a user