From b3402f14def84f24433875a770ec417b75a42abd Mon Sep 17 00:00:00 2001 From: gongbiao Date: Thu, 2 Jan 2020 09:56:06 +0800 Subject: [PATCH] =?UTF-8?q?[=E9=A6=96=E9=A1=B5=E6=B5=AE=E5=B1=82][?= =?UTF-8?q?=E4=BF=AE=E6=94=B9][=E7=94=A8=E6=88=B7=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E5=A4=9A=E6=AC=A1=E6=8F=92=E5=85=A5=E9=97=AE=E9=A2=98]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/WxCuserFloatingLayerServiceImpl.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxCuserFloatingLayerServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxCuserFloatingLayerServiceImpl.java index 8e46e6795..20ddb838b 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxCuserFloatingLayerServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxCuserFloatingLayerServiceImpl.java @@ -56,7 +56,12 @@ public class WxCuserFloatingLayerServiceImpl implements WxCuserFloatingLayerServ wxCuserFloatingLayerQuery.setUserId(byOpenId.getId()); WxCuserFloatingLayer wxCuserFloatingLayer = wxCuserFloatingLayerMapper.selectOne(new QueryWrapper<>(wxCuserFloatingLayerQuery)); if (wxCuserFloatingLayer == null) { - saveCuserFloatingLayer(byOpenId); + try { + saveCuserFloatingLayer(byOpenId); + } catch (Exception e) { + logger.error("用户 {} 已弹过浮层",byOpenId.getId()); + return null; + } return getWxFloatingLayer(byOpenId); } return null;