|
@@ -35,9 +35,9 @@ public class ArNotifyController {
|
|
|
if (request == null || UtilList.isEmpty(request.getItems())) {
|
|
if (request == null || UtilList.isEmpty(request.getItems())) {
|
|
|
return ArNotifyResponse.error("ITEM不能为空");
|
|
return ArNotifyResponse.error("ITEM不能为空");
|
|
|
}
|
|
}
|
|
|
-// if (request.getItems().size() > 100) {
|
|
|
|
|
-// return ArNotifyResponse.error("ITEM单次最多100条");
|
|
|
|
|
-// }
|
|
|
|
|
|
|
+ if (request.getItems().size() > 500) {
|
|
|
|
|
+ return ArNotifyResponse.error("ITEM单次最多500条");
|
|
|
|
|
+ }
|
|
|
return arNotifyService.notify(request.getItems()) ? ArNotifyResponse.success()
|
|
return arNotifyService.notify(request.getItems()) ? ArNotifyResponse.success()
|
|
|
: ArNotifyResponse.error("通知失败");
|
|
: ArNotifyResponse.error("通知失败");
|
|
|
}
|
|
}
|