From ce9330e8a8c9795c6103790d4135ef10623fc762 Mon Sep 17 00:00:00 2001 From: haungxing <1203316822@qq.com> Date: Tue, 20 Jun 2023 16:57:41 +0800 Subject: [PATCH] =?UTF-8?q?#=20=E8=A7=A3=E5=86=B3=E6=B6=88=E6=81=AFAPP/WEB?= =?UTF-8?q?=E5=A4=9A=E4=BA=BA=E5=8D=B3=E6=97=B6=E6=8E=A8=E9=80=81feign?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E6=8E=A5=E6=94=B6=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/hnac/hzims/message/fegin/MessageClient.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hzims-service/message/src/main/java/com/hnac/hzims/message/fegin/MessageClient.java b/hzims-service/message/src/main/java/com/hnac/hzims/message/fegin/MessageClient.java index 83c3092..f8b5a26 100644 --- a/hzims-service/message/src/main/java/com/hnac/hzims/message/fegin/MessageClient.java +++ b/hzims-service/message/src/main/java/com/hnac/hzims/message/fegin/MessageClient.java @@ -138,13 +138,13 @@ public class MessageClient extends BladeController implements IMessageClient{ if(saveResult) { List appRecords = pushRecords.stream().filter(record -> MessageConstants.APP_PUSH.equals(record.getType())).collect(Collectors.toList()); // 推送消息 - app - recordService.sendAppMsgByUsers(request,appRecords); + Boolean appFlag = recordService.sendAppMsgByUsers(request, appRecords); // 推送消息 - web - recordService.sendWsMsgByUsers(CollectionUtils.subtract(pushRecords,appRecords).stream().collect(Collectors.toList())); - return R.success("推送成功"); + Boolean wsFlag = recordService.sendWsMsgByUsers(CollectionUtils.subtract(pushRecords, appRecords).stream().collect(Collectors.toList())); + return R.data(appFlag && wsFlag); } else { - return R.fail("保存消息失败"); + return R.data(false); } }