|
@@ -81,7 +81,7 @@ func (l *CheckTokenLogic) CheckToken(req *types.CheckTokenReq) (resp *types.Chec
|
|
|
},
|
|
|
}
|
|
|
} else {
|
|
|
- data, _ := l.svcCtx.DB.Agent.Query().Where(agent.ID(tokenItem.AgentID), agent.OrganizationID(tokenItem.OrganizationID)).First(l.ctx)
|
|
|
+ data, _ := l.svcCtx.DB.Agent.Query().Where(agent.ID(tokenItem.AgentID)).First(l.ctx)
|
|
|
if data != nil {
|
|
|
agentInfo = types.AgentInfo{
|
|
|
BaseIDInfo: types.BaseIDInfo{
|