diff --git a/zc-business/src/main/java/com/zc/business/controller/MsmController.java b/zc-business/src/main/java/com/zc/business/controller/MsmController.java index bc35521e..3ec4dee6 100644 --- a/zc-business/src/main/java/com/zc/business/controller/MsmController.java +++ b/zc-business/src/main/java/com/zc/business/controller/MsmController.java @@ -50,19 +50,20 @@ public class MsmController extends BaseController { //整合推送 @PostMapping("/pushAll") public AjaxResult pushAll(@RequestBody HashMap map){ - if (map == null || !map.containsKey("type")||StringUtils.isBlank(map.get("type").toString())) { - return AjaxResult.error("参数错误"); - } - if (map == null ||!map.containsKey("content")|| StringUtils.isBlank(map.get("content").toString())) { - return AjaxResult.error("内容为空"); - } - if (!map.containsKey("eventId")|| StringUtils.isBlank(map.get("eventId").toString())) { - return AjaxResult.error("事件id为空"); - } - if (map.get("content").toString().length()>=200){ - return AjaxResult.error("内容长度超长"); - } - return msmService.putAll(map); +// if (map == null || !map.containsKey("type")||StringUtils.isBlank(map.get("type").toString())) { +// return AjaxResult.error("参数错误"); +// } +// if (map == null ||!map.containsKey("content")|| StringUtils.isBlank(map.get("content").toString())) { +// return AjaxResult.error("内容为空"); +// } +// if (!map.containsKey("eventId")|| StringUtils.isBlank(map.get("eventId").toString())) { +// return AjaxResult.error("事件id为空"); +// } +// if (map.get("content").toString().length()>=200){ +// return AjaxResult.error("内容长度超长"); +// } +// return msmService.putAll(map); + return AjaxResult.error("接口已关闭"); } //整合推送(弃用) @PostMapping("/pushAllText")