This commit is contained in:
Mrx
2026-01-27 18:45:44 +08:00
parent 67082972a9
commit 602d5f5f71
2 changed files with 4 additions and 2 deletions

View File

@@ -40,7 +40,9 @@ func NewQueryServiceLogic(ctx context.Context, svcCtx *svc.ServiceContext) *Quer
func (l *QueryServiceLogic) QueryService(req *types.QueryServiceReq) (resp *types.QueryServiceResp, err error) {
if req.AgentIdentifier != "" {
l.ctx = context.WithValue(l.ctx, "agentIdentifier", req.AgentIdentifier)
return nil, errors.Wrapf(xerr.NewErrMsg("服务暂不可用,系统已暂停查询服务,请稍后再试"), "查询服务暂停, AgentIdentifier: %s", req.AgentIdentifier)
// l.ctx = context.WithValue(l.ctx, "agentIdentifier", req.AgentIdentifier)
} else if req.App {
l.ctx = context.WithValue(l.ctx, "app", req.App)
}