刘俊驰 5 months ago
parent
commit
5e8c0917ac

+ 1 - 1
cooleshow-app/src/main/java/com/yonge/cooleshow/student/controller/StudentController.java

@@ -97,7 +97,7 @@ public class StudentController extends BaseController {
     @GetMapping("/queryUserInfo")
     public HttpResponseResult<StudentHomeVo> queryUserInfo() throws Exception {
         SysUser user = sysUserFeignService.queryUserInfo();
-        if (user == null || null == user.getId()) {
+        if (user == null || null == user.getId() || (user.getDelFlag()!=null && user.getDelFlag())) {
             return failed(HttpStatus.FORBIDDEN, "请登录");
         }
         return succeed(studentService.queryUserInfo(user));