‘linchangsheng’ 1 week ago
parent
commit
3e337acd3d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/java/com/gree/mall/miniapp/logic/common/CommonLogic.java

+ 1 - 1
src/main/java/com/gree/mall/miniapp/logic/common/CommonLogic.java

@@ -115,7 +115,7 @@ public class CommonLogic {
         currentCompanyWechat.setUser(user);
 
 
-        if (user == null || !StringUtil.isEmpty(user.getWebsitId())) {
+        if (user != null && !StringUtil.isEmpty(user.getWebsitId())) {
             AdminWebsit adminWebsit = adminWebsitService.getById(user.getWebsitId());
             currentCompanyWechat.setAdminWebsit(adminWebsit);
         }