From 154f1f0ba1668b0c279ac935ee80e884ce1413b1 Mon Sep 17 00:00:00 2001 From: ZZ Date: Mon, 25 Apr 2022 10:09:55 +0800 Subject: [PATCH] equip auth only failed with 500 when arguments failed --- .../main/java/com/xhpc/evcs/api/QueryEquipAuthController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/evcs-modules/evcs-core/src/main/java/com/xhpc/evcs/api/QueryEquipAuthController.java b/evcs-modules/evcs-core/src/main/java/com/xhpc/evcs/api/QueryEquipAuthController.java index ca622472..5b7e30dc 100644 --- a/evcs-modules/evcs-core/src/main/java/com/xhpc/evcs/api/QueryEquipAuthController.java +++ b/evcs-modules/evcs-core/src/main/java/com/xhpc/evcs/api/QueryEquipAuthController.java @@ -39,9 +39,10 @@ public class QueryEquipAuthController { public CommonResponse queryEquipAuth(@RequestBody CommonRequest commonRequest) throws Exception { CommonResponse resp = new CommonResponse(); - resp.setRet(EvcsConst.RET_FAIL); + resp.setRet(EvcsConst.RET_SUCC); EquipAuthRequest equipAuthRequest = JSONUtil.readParams(commonRequest.getData(), EquipAuthRequest.class); if (equipAuthRequest == null) { + resp.setRet(EvcsConst.RET_FAIL); resp.setMsg("Request or token params validation failed"); } else { EquipAuthResponse equipAuthResponse = new EquipAuthResponse();