This commit is contained in:
laodaming 2023-08-24 11:27:53 +08:00
parent 002444ff82
commit 6a45b1e1e7

View File

@ -202,15 +202,10 @@ func (l *DataTransferLogic) checkAuth(r *http.Request) (isAuth bool, userInfo *a
logx.Error(err)
return false, nil
}
//不是登录用户也不是游客
if !userInfo.IsUser() && !userInfo.IsGuest() {
return false, nil
}
userInfo.UserId = 39
userInfo.GuestId = 0
return true, userInfo
}
return false, nil
//白板用户
return true, &auth.UserInfo{}
}
// 鉴权失败通知