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 -> {