From b70e1153af46aa0d4656a5db81cb2dfc762a715b Mon Sep 17 00:00:00 2001 From: ZZ Date: Thu, 14 Oct 2021 20:29:27 +0800 Subject: [PATCH] =?UTF-8?q?=E9=81=87=E5=88=B0=E9=94=99=E8=AF=AF=E7=9A=84?= =?UTF-8?q?=E7=AC=AC=E4=B8=89=E6=96=B9opId=E5=8F=82=E6=95=B0=E7=9B=B4?= =?UTF-8?q?=E6=8E=A5=E6=8A=9B=E5=87=BA=E8=BF=90=E8=A1=8C=E6=97=B6=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/xhpc/evcs/api/CoreDispatcher.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/evcs-modules/evcs-core/src/main/java/com/xhpc/evcs/api/CoreDispatcher.java b/evcs-modules/evcs-core/src/main/java/com/xhpc/evcs/api/CoreDispatcher.java index 237d5555..a3ccc717 100644 --- a/evcs-modules/evcs-core/src/main/java/com/xhpc/evcs/api/CoreDispatcher.java +++ b/evcs-modules/evcs-core/src/main/java/com/xhpc/evcs/api/CoreDispatcher.java @@ -59,6 +59,10 @@ public class CoreDispatcher { Calendar cal = Calendar.getInstance(); String bearer = null; 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 { if (object.getClass().getSimpleName().equals("CommonRequest")) { CommonRequest commonRequest = (CommonRequest) object;