From 83e55d11d8952829570789b8756e10eadc75de53 Mon Sep 17 00:00:00 2001 From: SongZhang <2064194730@qq.com> Date: Sun, 29 Sep 2024 13:58:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=B1=E9=A4=90=E6=A8=A1=E5=BC=8F=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cashierservice/netty/PushToAppChannelHandlerAdapter.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/netty/PushToAppChannelHandlerAdapter.java b/src/main/java/com/chaozhanggui/system/cashierservice/netty/PushToAppChannelHandlerAdapter.java index 03de63f..4d83a4f 100644 --- a/src/main/java/com/chaozhanggui/system/cashierservice/netty/PushToAppChannelHandlerAdapter.java +++ b/src/main/java/com/chaozhanggui/system/cashierservice/netty/PushToAppChannelHandlerAdapter.java @@ -142,8 +142,7 @@ public class PushToAppChannelHandlerAdapter extends NettyChannelHandlerAdapter { } ShopEatTypeInfoDTO eatModel = shopUtils.getEatModel(tableId, shopId); - tableId = !eatModel.isOpenTakeout() ? null : tableId; - String tableCartKey = RedisCst.getTableCartKey(shopId, tableId, Integer.valueOf(userId)); + String tableCartKey = RedisCst.getTableCartKey(shopId, !eatModel.isOpenTakeout() ? null : tableId, Integer.valueOf(userId)); log.info("netty连接 接收到数据 建立连接参数 param:{}",jsonObject); this.tableId=tableId; this.shopId=shopId;