lidongdong
2023-06-30 b567d7ff3b6a4fb6f4080e6686e75cbc535de55b
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/controller/BaseController.java
@@ -65,9 +65,9 @@
    public Long getCommunityId() {
        LoginUserInfoVO loginUserInfo = this.getLoginUserInfo();
        Long communityId = loginUserInfo.getCommunityId();
        if (null == communityId) {
            throw new ServiceException("用户未绑定社区");
        }
//        if (null == communityId) {
//            throw new ServiceException("用户未绑定社区");
//        }
        return communityId;
    }
@@ -139,8 +139,11 @@
    }
    public String getAppId(){
        LoginUserInfoVO loginUserInfo = this.getLoginUserInfo();
        return loginUserInfo.getAppId();
        String appid = this.getRequest().getHeader("appid");
        if(StringUtils.isEmpty(appid)){
            return "wx0cef797390444b75";
        }
        return appid;
    }
    public String getAppSecret(){