From 37f0a52c97ea70cfb816af02dee9b1d5111929b3 Mon Sep 17 00:00:00 2001 From: haungxing <1203316822@qq.com> Date: Wed, 21 Jun 2023 11:51:10 +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/IMessageClient.java | 2 +- .../src/main/java/com/hnac/hzims/message/fegin/MessageClient.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hzims-service-api/message-api/src/main/java/com/hnac/hzims/message/fegin/IMessageClient.java b/hzims-service-api/message-api/src/main/java/com/hnac/hzims/message/fegin/IMessageClient.java index 6c298a9..887e97c 100644 --- a/hzims-service-api/message-api/src/main/java/com/hnac/hzims/message/fegin/IMessageClient.java +++ b/hzims-service-api/message-api/src/main/java/com/hnac/hzims/message/fegin/IMessageClient.java @@ -59,6 +59,6 @@ public interface IMessageClient { * @param request * @return */ - @PostMapping(SEND_APP_AND_WS_MSG) + @PostMapping(value = SEND_APP_AND_WS_MSG,consumes = "application/json; charset=UTF-8") R sendAppAndWsMsgByUsers(@RequestBody BusinessMessageDTO request); } 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 f8b5a26..0660fdd 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 @@ -116,7 +116,7 @@ public class MessageClient extends BladeController implements IMessageClient{ } @Override - @PostMapping(SEND_APP_AND_WS_MSG) + @PostMapping(value = SEND_APP_AND_WS_MSG , produces="application/json; charset=UTF-8") public R sendAppAndWsMsgByUsers(@RequestBody BusinessMessageDTO request) { // 保存消息记录 List pushRecords = Func.toLongList(request.getUserIds()).stream().flatMap(userId -> {