‘linchangsheng’ 3 months ago
parent
commit
95fe70a92a

+ 4 - 0
mall-miniapp-service/src/main/java/com/gree/mall/miniapp/logic/common/CommonLogic.java

@@ -111,6 +111,10 @@ public class CommonLogic {
             currentCompanyWechat.setUserId(user.getUserId());
             currentCompanyWechat.setUser(user);
         }
+
+        if (user == null)
+            throw new RemoteServiceException(601,"授权已过期,重新登入");
+
         return currentCompanyWechat;
 
     }