遇到错误的第三方opId参数直接抛出运行时错误
This commit is contained in:
parent
04ff0efb10
commit
b70e1153af
@ -59,6 +59,10 @@ public class CoreDispatcher {
|
|||||||
Calendar cal = Calendar.getInstance();
|
Calendar cal = Calendar.getInstance();
|
||||||
String bearer = null;
|
String bearer = null;
|
||||||
AuthSecretToken authSecretTokenOut = getAuthSecretTokenOut(operatorId3irdpty, operatorID);
|
AuthSecretToken authSecretTokenOut = getAuthSecretTokenOut(operatorId3irdpty, operatorID);
|
||||||
|
if (authSecretTokenOut!=null) {
|
||||||
|
String error = String.format("secret/token not found for [%s/%s](opId3pt/opId)", operatorId3irdpty, operatorID);
|
||||||
|
throw new RuntimeException(error);
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
if (object.getClass().getSimpleName().equals("CommonRequest")) {
|
if (object.getClass().getSimpleName().equals("CommonRequest")) {
|
||||||
CommonRequest commonRequest = (CommonRequest) object;
|
CommonRequest commonRequest = (CommonRequest) object;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user