fix
This commit is contained in:
parent
002444ff82
commit
6a45b1e1e7
|
@ -202,15 +202,10 @@ func (l *DataTransferLogic) checkAuth(r *http.Request) (isAuth bool, userInfo *a
|
||||||
logx.Error(err)
|
logx.Error(err)
|
||||||
return false, nil
|
return false, nil
|
||||||
}
|
}
|
||||||
//不是登录用户也不是游客
|
|
||||||
if !userInfo.IsUser() && !userInfo.IsGuest() {
|
|
||||||
return false, nil
|
|
||||||
}
|
|
||||||
userInfo.UserId = 39
|
|
||||||
userInfo.GuestId = 0
|
|
||||||
return true, userInfo
|
return true, userInfo
|
||||||
}
|
}
|
||||||
return false, nil
|
//白板用户
|
||||||
|
return true, &auth.UserInfo{}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 鉴权失败通知
|
// 鉴权失败通知
|
||||||
|
|
Loading…
Reference in New Issue
Block a user