| @@ -328,11 +328,20 @@ public class WxWeappInfoController extends BaseController { | |||||
| Long templateId = null; | Long templateId = null; | ||||
| try { | try { | ||||
| templateId = Long.parseLong(templateIdStr); | templateId = Long.parseLong(templateIdStr); | ||||
| type = Integer.parseInt(typeStr); | |||||
| } catch (Exception e) { | } catch (Exception e) { | ||||
| return new ResultData(ErrorCode.SYS_PARAMETER_ERROR); | return new ResultData(ErrorCode.SYS_PARAMETER_ERROR); | ||||
| } | } | ||||
| try { | |||||
| type = Integer.parseInt(typeStr); | |||||
| } catch (Exception e) { | |||||
| logger.error("type为null"); | |||||
| } | |||||
| if(StringUtils.isBlank(appsStr)) { | if(StringUtils.isBlank(appsStr)) { | ||||
| if(type == null) { | |||||
| logger.error("type为null"); | |||||
| return new ResultData(ErrorCode.SYS_PARAMETER_ERROR); | |||||
| } | |||||
| WxWeappInfo authQ = new WxWeappInfo(); | WxWeappInfo authQ = new WxWeappInfo(); | ||||
| authQ.setType(type); | authQ.setType(type); | ||||
| List<WxWeappInfo> appList = authorizerInfoService.getList(authQ); | List<WxWeappInfo> appList = authorizerInfoService.getList(authQ); | ||||