‘linchangsheng’ 1 hafta önce
ebeveyn
işleme
3e337acd3d

+ 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);
         }