新增创建订单 切换就餐模式接口
This commit is contained in:
@@ -39,7 +39,9 @@ import java.util.concurrent.ConcurrentHashMap;
|
||||
public class PushToAppChannelHandlerAdapter extends NettyChannelHandlerAdapter {
|
||||
|
||||
/**
|
||||
* [tableID-shopId, [userId, ctx]]
|
||||
* 台桌下单为: TAKEOUT_TABLE_CART:shopId:tableID
|
||||
* 店内自取为: DINE_IN_TABLE_CART:shopId:userId
|
||||
* [shopId:tableID, [userId, ctx]]
|
||||
*/
|
||||
private static Map<String, ConcurrentHashMap<String, ChannelHandlerContext>> webSocketMap = new HashMap<>();
|
||||
|
||||
@@ -239,7 +241,7 @@ public class PushToAppChannelHandlerAdapter extends NettyChannelHandlerAdapter {
|
||||
|
||||
@Async
|
||||
public void AppSendInfo(String message, String redisKey,String userId, boolean userFlag) {
|
||||
log.info("netty连接 发送消息 tableId:{} userId:{} userFlag:{} message:{}",redisKey,userId,userFlag, JSONUtil.toJSONString(message));
|
||||
log.info("netty连接 发送消息 key:{} userId:{} userFlag:{} message:{}",redisKey,userId,userFlag, JSONUtil.toJSONString(message));
|
||||
log.info("当前已连接队列信息: {}", webSocketMap);
|
||||
if (userFlag) {
|
||||
if (webSocketMap.containsKey(redisKey)) {
|
||||
|
||||
Reference in New Issue
Block a user