Bladeren bron

fix:bug 2988 举报通知被隐藏,无法显示

李亚非 2 maanden geleden
bovenliggende
commit
271a4f1a74

+ 3 - 4
alien-store/src/main/java/shop/alien/store/service/impl/LifeUserViolationServiceImpl.java

@@ -131,9 +131,8 @@ public class LifeUserViolationServiceImpl extends ServiceImpl<LifeUserViolationM
 //                lifeUserViolationMapper.updateById(lifeuserViolation);
 
 
-                //String phoneId = Objects.requireNonNull(JwtUtil.getCurrentUserInfo()).getString("userType") + "_" + JwtUtil.getCurrentUserInfo().getString("phone");
-                    // 举报人消息
-                  /*  LifeNotice lifeNotice = getLifeNotice(lifeuserViolation);
+                // 举报人消息
+                    LifeNotice lifeNotice = getLifeNotice(lifeuserViolation);
                     lifeNoticeMapper.insert(lifeNotice);
                     WebSocketVo websocketVo = new WebSocketVo();
                     websocketVo.setSenderId("system");
@@ -158,7 +157,7 @@ public class LifeUserViolationServiceImpl extends ServiceImpl<LifeUserViolationM
                             websocketVoReported.setText(com.alibaba.fastjson2.JSONObject.from(lifeNoticeReported).toJSONString());
                             webSocketProcess.sendMessage(lifeNoticeReported.getReceiverId(), com.alibaba.fastjson2.JSONObject.from(websocketVoReported).toJSONString());
                         }
-                    }*/
+                    }
                 return result;
             }
         } catch (Exception e) {