diff --git a/server/websocket/internal/logic/datatransferlogic.go b/server/websocket/internal/logic/datatransferlogic.go index 192133a5..52f3034d 100644 --- a/server/websocket/internal/logic/datatransferlogic.go +++ b/server/websocket/internal/logic/datatransferlogic.go @@ -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{} } // 鉴权失败通知