修复 微信服务号/小程序 前端展示的问题。

pull/37/head
3y 2 years ago
parent 955f71ee53
commit e30afb0c35

@ -70,8 +70,10 @@ public class MiniProgramController {
@AustinResult @AustinResult
public CommonAmisVo queryDetailList(Integer id, String wxTemplateId) { public CommonAmisVo queryDetailList(Integer id, String wxTemplateId) {
if (Objects.isNull(id) || Objects.isNull(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 { try {
WxMaService wxMaService = accountUtils.getAccountById(id, WxMaService.class); WxMaService wxMaService = accountUtils.getAccountById(id, WxMaService.class);
List<TemplateInfo> templateList = wxMaService.getSubscribeService().getTemplateList(); List<TemplateInfo> templateList = wxMaService.getSubscribeService().getTemplateList();

@ -95,7 +95,8 @@ public class OfficialAccountController {
@AustinResult @AustinResult
public CommonAmisVo queryDetailList(Integer id, String wxTemplateId) { public CommonAmisVo queryDetailList(Integer id, String wxTemplateId) {
if (Objects.isNull(id) || Objects.isNull(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 { try {
WxMpService wxMpService = accountUtils.getAccountById(id, WxMpService.class); WxMpService wxMpService = accountUtils.getAccountById(id, WxMpService.class);

Loading…
Cancel
Save