| @@ -421,9 +421,12 @@ public class WxWeappInfoController extends BaseController { | |||||
| try { | try { | ||||
| type = Integer.parseInt(typeStr); | type = Integer.parseInt(typeStr); | ||||
| } catch (Exception e) { | } catch (Exception e) { | ||||
| return new ResultData(ErrorCode.SYS_PARAMETER_ERROR); | |||||
| logger.error("小程序类型"); | |||||
| } | } | ||||
| if(StringUtils.isBlank(appsStr)) { | if(StringUtils.isBlank(appsStr)) { | ||||
| if(type == null) { | |||||
| return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL); | |||||
| } | |||||
| 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); | ||||
| @@ -715,7 +718,7 @@ public class WxWeappInfoController extends BaseController { | |||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation(value = "批量发布", notes = "{\"version\":\"string\"}") | |||||
| @ApiOperation(value = "批量发布", notes = "{\"type\":\"string\", \"version\":\"string\"}") | |||||
| @PostMapping("batchRelease") | @PostMapping("batchRelease") | ||||
| public ResultData batchRelease(@RequestBody Map<String, String> params) { | public ResultData batchRelease(@RequestBody Map<String, String> params) { | ||||
| logger.debug("[" + getIpAddr() + "] WxWeappInfoController::batchRelease"); | logger.debug("[" + getIpAddr() + "] WxWeappInfoController::batchRelease"); | ||||