From b7a3b5c8628adcf3fd3e63f7da07003536d0aa39 Mon Sep 17 00:00:00 2001
From: lidongdong <1459917685@qq.com>
Date: 星期三, 10 五月 2023 18:51:53 +0800
Subject: [PATCH] 修改招募公告

---
 springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/controller/BaseController.java |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/controller/BaseController.java b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/controller/BaseController.java
index b10e110..963b4e3 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/controller/BaseController.java
+++ b/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;
     }
 
@@ -140,6 +140,9 @@
 
     public String getAppId(){
         String appid = this.getRequest().getHeader("appid");
+        if(StringUtils.isEmpty(appid)){
+            return "wx0cef797390444b75";
+        }
         return appid;
     }
 

--
Gitblit v1.7.1