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