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();