Browse Source

# 解决消息APP/WEB多人即时推送feign接口接收问题

zhongwei
haungxing 1 year ago
parent
commit
37f0a52c97
  1. 2
      hzims-service-api/message-api/src/main/java/com/hnac/hzims/message/fegin/IMessageClient.java
  2. 2
      hzims-service/message/src/main/java/com/hnac/hzims/message/fegin/MessageClient.java

2
hzims-service-api/message-api/src/main/java/com/hnac/hzims/message/fegin/IMessageClient.java

@ -59,6 +59,6 @@ public interface IMessageClient {
* @param request * @param request
* @return * @return
*/ */
@PostMapping(SEND_APP_AND_WS_MSG) @PostMapping(value = SEND_APP_AND_WS_MSG,consumes = "application/json; charset=UTF-8")
R<Boolean> sendAppAndWsMsgByUsers(@RequestBody BusinessMessageDTO request); R<Boolean> sendAppAndWsMsgByUsers(@RequestBody BusinessMessageDTO request);
} }

2
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 @Override
@PostMapping(SEND_APP_AND_WS_MSG) @PostMapping(value = SEND_APP_AND_WS_MSG , produces="application/json; charset=UTF-8")
public R<Boolean> sendAppAndWsMsgByUsers(@RequestBody BusinessMessageDTO request) { public R<Boolean> sendAppAndWsMsgByUsers(@RequestBody BusinessMessageDTO request) {
// 保存消息记录 // 保存消息记录
List<MessagePushRecordEntity> pushRecords = Func.toLongList(request.getUserIds()).stream().flatMap(userId -> { List<MessagePushRecordEntity> pushRecords = Func.toLongList(request.getUserIds()).stream().flatMap(userId -> {

Loading…
Cancel
Save