From e30afb0c35e6e3f550e9c24d76299d7254ea9704 Mon Sep 17 00:00:00 2001 From: 3y Date: Tue, 2 May 2023 15:02:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E5=BE=AE=E4=BF=A1?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=8F=B7/=E5=B0=8F=E7=A8=8B=E5=BA=8F=20?= =?UTF-8?q?=E5=89=8D=E7=AB=AF=E5=B1=95=E7=A4=BA=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java3y/austin/web/controller/MiniProgramController.java | 4 +++- .../austin/web/controller/OfficialAccountController.java | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/austin-web/src/main/java/com/java3y/austin/web/controller/MiniProgramController.java b/austin-web/src/main/java/com/java3y/austin/web/controller/MiniProgramController.java index acb40cc..6ae5f2b 100644 --- a/austin-web/src/main/java/com/java3y/austin/web/controller/MiniProgramController.java +++ b/austin-web/src/main/java/com/java3y/austin/web/controller/MiniProgramController.java @@ -70,8 +70,10 @@ public class MiniProgramController { @AustinResult public CommonAmisVo queryDetailList(Integer id, String wxTemplateId) { if (Objects.isNull(id) || Objects.isNull(wxTemplateId)) { - throw new CommonException(RespStatusEnum.CLIENT_BAD_PARAMETERS); + log.info("id || wxTemplateId null! id:{},wxTemplateId:{}", id, wxTemplateId); + return CommonAmisVo.builder().build(); } + try { WxMaService wxMaService = accountUtils.getAccountById(id, WxMaService.class); List templateList = wxMaService.getSubscribeService().getTemplateList(); diff --git a/austin-web/src/main/java/com/java3y/austin/web/controller/OfficialAccountController.java b/austin-web/src/main/java/com/java3y/austin/web/controller/OfficialAccountController.java index 0410f67..100e8e7 100644 --- a/austin-web/src/main/java/com/java3y/austin/web/controller/OfficialAccountController.java +++ b/austin-web/src/main/java/com/java3y/austin/web/controller/OfficialAccountController.java @@ -95,7 +95,8 @@ public class OfficialAccountController { @AustinResult public CommonAmisVo queryDetailList(Integer id, String wxTemplateId) { if (Objects.isNull(id) || Objects.isNull(wxTemplateId)) { - throw new CommonException(RespStatusEnum.CLIENT_BAD_PARAMETERS); + log.info("id || wxTemplateId null! id:{},wxTemplateId:{}", id, wxTemplateId); + return CommonAmisVo.builder().build(); } try { WxMpService wxMpService = accountUtils.getAccountById(id, WxMpService.class);