张天森
2022-07-19 cf0a4b116c078c9b4413749c362c95f1f8b7e8c0
update
1个文件已修改
24 ■■■■ 已修改文件
springcloud_k8s_panzhihuazhihuishequ/community_backstage/src/main/java/com/panzhihua/community_backstage/api/IndexApi.java 24 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/community_backstage/src/main/java/com/panzhihua/community_backstage/api/IndexApi.java
@@ -104,18 +104,18 @@
        userInfo = new String(decrypt);
        LoginUserInfoVO loginUserInfoVO = JSONObject.parseObject(userInfo, LoginUserInfoVO.class);
        //截取社区名
        if (StringUtils.isEmpty(loginUserInfoVO.getCommunityName())) {
            R<LoginUserInfoVO> userInfoByUserId = userService.getUserInfoByUserId(loginUserInfoVO.getUserId().toString());
            loginUserInfoVO = userInfoByUserId.getData();
        }
        Integer type=null;
        if (loginUserInfoVO.getAccount().equals("pannongyenongcunju")){
            type=2;
        }else if (loginUserInfoVO.getAccount().equals("pandashujuzhongxin")){
            type=1;
        }else if (loginUserInfoVO.getAccount().equals("fangyipingtai")){
            type=3;
        }
//        if (StringUtils.isEmpty(loginUserInfoVO.getCommunityName())) {
//            R<LoginUserInfoVO> userInfoByUserId = userService.getUserInfoByUserId(loginUserInfoVO.getUserId().toString());
//            loginUserInfoVO = userInfoByUserId.getData();
//        }
        Integer type=3;
//        if (loginUserInfoVO.getAccount().equals("pannongyenongcunju")){
//            type=2;
//        }else if (loginUserInfoVO.getAccount().equals("pandashujuzhongxin")){
//            type=1;
//        }else if (loginUserInfoVO.getAccount().equals("fangyipingtai")){
//            type=3;
//        }
        return userService.communityList(type);
    }
}