|
|
|
@ -86,7 +86,7 @@ public class WebsocketServiceImpl implements IMessageService {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public Boolean send(MessagePushRecordEntity request) { |
|
|
|
|
public boolean send(MessagePushRecordEntity request) { |
|
|
|
|
String userId = request.getAccount(); |
|
|
|
|
request.setPushTime(LocalDateTime.now()); |
|
|
|
|
WebSocketSession webSocketSession = SessionManager.SESSION_POOL.get(userId); |
|
|
|
@ -104,6 +104,6 @@ public class WebsocketServiceImpl implements IMessageService {
|
|
|
|
|
redisTemplate.opsForList().leftPush(key,message); |
|
|
|
|
redisTemplate.expire(key,24, TimeUnit.HOURS); |
|
|
|
|
} |
|
|
|
|
return null; |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|