乐于分享
好东西不私藏

OpenClaw工具拆解之 sessions_send+sessions_spawn

OpenClaw工具拆解之 sessions_send+sessions_spawn

一、sessions_send 工具

1.1 工具概述

功能:发送消息到其他会话核心特性

  • • 支持 sessionKey 或 label 定位目标
  • • 支持指定 agentId(跨 agent 通信)
  • • Agent-to-Agent 策略检查
  • • 会话可见性检查
  • • 超时控制

1.2 Schema 定义

位置:第 109348 行

constSessionsSendToolSchema = Type.Object({sessionKeyType.Optional(Type.String()),labelType.Optional(Type.String({minLength1,maxLength512    })),agentIdType.Optional(Type.String({minLength1,maxLength64    })),messageType.String(),timeoutSecondsType.Optional(Type.Number({ minimum0 }))});

1.3 完整执行代码

位置:第 109358 行

functioncreateSessionsSendTool(opts) {return {label"Session Send",name"sessions_send",description"Send a message into another session. Use sessionKey or label to identify the target.",parametersSessionsSendToolSchema,executeasync (_toolCallId, args) => {const params = args;const gatewayCall = opts?.callGateway ?? callGateway;// 1. 解析消息(必填)const message = readStringParam$1(params, "message", { requiredtrue });// 2. 解析会话上下文const { cfg, mainKey, alias, effectiveRequesterKey, restrictToSpawned } = resolveSessionToolContext(opts);const a2aPolicy = createAgentToAgentPolicy(cfg);const sessionVisibility = resolveEffectiveSessionToolsVisibility({                cfg,sandboxed: opts?.sandboxed === true            });// 3. 解析目标参数const sessionKeyParam = readStringParam$1(params, "sessionKey");const labelParam = readStringParam$1(params, "label")?.trim() || void0;const labelAgentIdParam = readStringParam$1(params, "agentId")?.trim() || void0;// 4. 检查参数冲突if (sessionKeyParam && labelParam) {returnjsonResult({runId: crypto$1.randomUUID(),status"error",error"Provide either sessionKey or label (not both)."                });            }let sessionKey = sessionKeyParam;// 5. 通过 label 解析 sessionKeyif (!sessionKey && labelParam) {const requesterAgentId = resolveAgentIdFromSessionKey(effectiveRequesterKey);const requestedAgentId = labelAgentIdParam ? normalizeAgentId(labelAgentIdParam) : void0;// 沙盒限制if (restrictToSpawned && requestedAgentId && requestedAgentId !== requesterAgentId) {returnjsonResult({runId: crypto$1.randomUUID(),status"forbidden",error"Sandboxed sessions_send label lookup is limited to this agent"                    });                }// Agent-to-Agent 策略检查if (requesterAgentId && requestedAgentId && requestedAgentId !== requesterAgentId) {if (!a2aPolicy.enabled) {returnjsonResult({runId: crypto$1.randomUUID(),status"forbidden",error"Agent-to-agent messaging is disabled. Set tools.agentToAgent.enabled=true to allow cross-agent sends."                        });                    }if (!a2aPolicy.isAllowed(requesterAgentId, requestedAgentId)) {returnjsonResult({runId: crypto$1.randomUUID(),status"forbidden",error"Agent-to-agent messaging denied by tools.agentToAgent.allow."                        });                    }                }// 解析 labelconst resolveParams = {label: labelParam,                    ...requestedAgentId ? { agentId: requestedAgentId } : {},                    ...restrictToSpawned ? { spawnedBy: effectiveRequesterKey } : {}                };let resolvedKey = "";try {const resolved = awaitgatewayCall({method"sessions.resolve",params: resolveParams,timeoutMs1e4                    });                    resolvedKey = typeof resolved?.key === "string" ? resolved.key.trim() : "";                } catch (err) {const msg = err instanceofError ? err.message : String(err);if (restrictToSpawned) {returnjsonResult({runId: crypto$1.randomUUID(),status"forbidden",error"Session not visible from this sandboxed agent session."                        });                    }returnjsonResult({runId: crypto$1.randomUUID(),status"error",error: msg || `No session found with label: ${labelParam}`                    });                }if (!resolvedKey) {if (restrictToSpawned) {returnjsonResult({runId: crypto$1.randomUUID(),status"forbidden",error"Session not visible from this sandboxed agent session."                        });                    }returnjsonResult({runId: crypto$1.randomUUID(),status"error",error`No session found with label: ${labelParam}`                    });                }                sessionKey = resolvedKey;            }// 6. 检查 sessionKey 是否存在if (!sessionKey) {returnjsonResult({runId: crypto$1.randomUUID(),status"error",error"Either sessionKey or label is required"                });            }// 7. 解析会话引用const resolvedSession = awaitresolveSessionReference({                sessionKey,                alias,                mainKey,requesterInternalKey: effectiveRequesterKey,                restrictToSpawned            });if (!resolvedSession.ok) {returnjsonResult({runId: crypto$1.randomUUID(),status: resolvedSession.status,error: resolvedSession.error                });            }// 8. 检查可见性const visibleSession = awaitresolveVisibleSessionReference({                resolvedSession,requesterSessionKey: effectiveRequesterKey,                restrictToSpawned,visibilitySessionKey: sessionKey            });if (!visibleSession.ok) {returnjsonResult({runId: crypto$1.randomUUID(),status: visibleSession.status,error: visibleSession.error,sessionKey: visibleSession.displayKey                });            }const resolvedKey = visibleSession.key;const displayKey = visibleSession.displayKey;// 9. 解析超时const timeoutSeconds = typeof params.timeoutSeconds === "number" && Number.isFinite(params.timeoutSeconds) ? Math.max(0Math.floor(params.timeoutSeconds)) : 30;const timeoutMs = timeoutSeconds * 1e3;const announceTimeoutMs = timeoutSeconds === 0 ? 3e4 : timeoutMs;// 10. 生成幂等键const idempotencyKey = crypto$1.randomUUID();let runId = idempotencyKey;// 11. 可见性检查const access = (awaitcreateSessionVisibilityGuard({action"send",requesterSessionKey: effectiveRequesterKey,visibility: sessionVisibility,                a2aPolicy            })).check(resolvedKey);if (!access.allowed) {returnjsonResult({runId: crypto$1.randomUUID(),status: access.status,error: access.error,sessionKey: displayKey                });            }// 12. 构建发送参数const sendParams = {                message,sessionKey: resolvedKey,                idempotencyKey,deliverfalse,  // 不直接发送到渠道channelINTERNAL_MESSAGE_CHANNEL,laneAGENT_LANE_NESTED,extraSystemPromptbuildAgentToAgentMessageContext({requesterSessionKey: opts?.agentSessionKey,requesterChannel: opts?.agentChannel,targetSessionKey: displayKey                }),inputProvenance: {kind"inter_session",sourceSessionKey: opts?.agentSessionKey,sourceChannel: opts?.agentChannel,sourceTool"sessions_send"                }            };// 13. 启动 A2A 流程const requesterSessionKey = opts?.agentSessionKey;const requesterChannel = opts?.agentChannel;const maxPingPongTurns = resolvePingPongTurns(cfg);const delivery = {status"pending",mode"announce"            };conststartA2AFlow = (roundOneReply, waitRunId) => {runSessionsSendA2AFlow({targetSessionKey: resolvedKey,                    displayKey,                    roundOneReply,                    waitRunId,                    requesterSessionKey,                    requesterChannel,                    maxPingPongTurns,                    gatewayCall,                    delivery                });            };// 14. 发送消息try {const result = awaitstartAgentRun({callGateway: gatewayCall,                    sendParams,                    runId,sessionKey: resolvedKey                });if (!result.okreturn result.result;                runId = result.runId;returnjsonResult({                    runId,status"sent",sessionKey: displayKey,                    delivery                });            } catch (err) {const msg = err instanceofError ? err.message : String(err);returnjsonResult({runId: crypto$1.randomUUID(),status"error",error: msg,sessionKey: displayKey                });            }        }    };}

1.4 Agent-to-Agent 策略检查

// 1. 检查是否启用if (!a2aPolicy.enabled) {returnjsonResult({status"forbidden",error"Agent-to-agent messaging is disabled."    });}// 2. 检查是否允许if (!a2aPolicy.isAllowed(requesterAgentId, requestedAgentId)) {returnjsonResult({status"forbidden",error"Agent-to-agent messaging denied by policy."    });}// 策略配置示例// tools.agentToAgent://   enabled: true//   allow://     - "agent-a" -> "agent-b"//     - "agent-a" -> "agent-c"

1.5 执行流程图

sessions_send 工具调用    ↓1. 解析消息(必填)    ↓2. 解析会话上下文    ↓3. 解析目标参数   ├─ sessionKey(直接指定)   └─ label(通过标签查找)    ↓4. 检查参数冲突(不能同时使用)    ↓5. 通过 label 解析 sessionKey   ├─ 沙盒限制检查   ├─ Agent-to-Agent 策略检查   └─ 调用 Gateway 解析    ↓6. 检查 sessionKey 是否存在    ↓7. 解析会话引用    ↓8. 检查可见性    ↓9. 解析超时    ↓10. 生成幂等键    ↓11. 可见性检查    ↓12. 构建发送参数    ↓13. 启动 A2A 流程    ↓14. 发送消息    ↓15. 返回结果

1.6 返回结果格式

成功

{"runId":"abc123","status":"sent","sessionKey":"main","delivery":{"status":"pending","mode":"announce"}}

失败(参数冲突)

{"runId":"abc123","status":"error","error":"Provide either sessionKey or label (not both)."}

失败(A2A 策略禁止)

{"runId":"abc123","status":"forbidden","error":"Agent-to-agent messaging is disabled. Set tools.agentToAgent.enabled=true to allow cross-agent sends."}

二、sessions_spawn 工具

2.1 工具概述

功能:创建子 agent 会话核心特性

  • • 支持两种运行时(subagent / acp)
  • • 支持两种模式(run 单次 / session 持久)
  • • 支持恢复已有会话(仅 ACP)
  • • 支持附件(仅 subagent)
  • • 支持线程绑定(仅 ACP)
  • • 自动继承工作目录

2.2 Schema 定义

位置:第 112084 行

constSessionsSpawnToolSchema = Type.Object({taskType.String(),labelType.Optional(Type.String()),runtimeoptionalStringEnum$3(SESSIONS_SPAWN_RUNTIMES),  // "subagent" | "acp"agentIdType.Optional(Type.String()),resumeSessionIdType.Optional(Type.String({ description"Resume an existing agent session by its ID (e.g. a Codex session UUID). Requires runtime=\"acp\"."    })),modelType.Optional(Type.String()),thinkingType.Optional(Type.String()),cwdType.Optional(Type.String()),runTimeoutSecondsType.Optional(Type.Number({ minimum0 })),timeoutSecondsType.Optional(Type.Number({ minimum0 })),threadType.Optional(Type.Boolean()),modeoptionalStringEnum$3(SUBAGENT_SPAWN_MODES),  // "run" | "session"cleanupoptionalStringEnum$3(["delete""keep"]),sandboxoptionalStringEnum$3(SESSIONS_SPAWN_SANDBOX_MODES),  // "inherit" | "require"streamTooptionalStringEnum$3(ACP_SPAWN_STREAM_TARGETS),  // "parent"attachmentsType.Optional(Type.Array(Type.Object({nameType.String(),contentType.String(),encodingType.Optional(optionalStringEnum$3(["utf8""base64"])),mimeTypeType.Optional(Type.String())    }), { maxItems50 })),attachAsType.Optional(Type.Object({ mountPathType.Optional(Type.String())     }))});

2.3 完整执行代码

位置:第 112110 行

functioncreateSessionsSpawnTool(opts) {return {label"Sessions",name"sessions_spawn",description"Spawn an isolated session (runtime=\"subagent\" or runtime=\"acp\"). mode=\"run\" is one-shot and mode=\"session\" is persistent/thread-bound. Subagents inherit the parent workspace directory automatically.",parametersSessionsSpawnToolSchema,executeasync (_toolCallId, args) => {const params = args;// 1. 检查不支持的参数const unsupportedParam = UNSUPPORTED_SESSIONS_SPAWN_PARAM_KEYS.find((key) =>Object.hasOwn(params, key)            );if (unsupportedParam) {thrownewToolInputError(`sessions_spawn does not support "${unsupportedParam}". Use "message" or "sessions_send" for channel delivery.`                );            }// 2. 解析必填参数const task = readStringParam$1(params, "task", { requiredtrue });const label = typeof params.label === "string" ? params.label.trim() : "";// 3. 解析运行时const runtime = params.runtime === "acp" ? "acp" : "subagent";const requestedAgentId = readStringParam$1(params, "agentId");const resumeSessionId = readStringParam$1(params, "resumeSessionId");// 4. 解析模型和思考级别const modelOverride = readStringParam$1(params, "model");const thinkingOverrideRaw = readStringParam$1(params, "thinking");const cwd = readStringParam$1(params, "cwd");// 5. 解析模式const mode = params.mode === "run" || params.mode === "session" ? params.mode : void0;const cleanup = params.cleanup === "keep" || params.cleanup === "delete" ? params.cleanup : "keep";const sandbox = params.sandbox === "require" ? "require" : "inherit";const streamTo = params.streamTo === "parent" ? "parent" : void0;// 6. 解析超时const timeoutSecondsCandidate = typeof params.runTimeoutSeconds === "number" ?                 params.runTimeoutSeconds : typeof params.timeoutSeconds === "number" ? params.timeoutSeconds : void0;const runTimeoutSeconds = typeof timeoutSecondsCandidate === "number" && Number.isFinite(timeoutSecondsCandidate) ? Math.max(0Math.floor(timeoutSecondsCandidate)) : void0;// 7. 解析线程和附件const thread = params.thread === true;const attachments = Array.isArray(params.attachments) ? params.attachments : void0;// 8. 检查运行时特定限制if (streamTo && runtime !== "acp") {returnjsonResult({status"error",error`streamTo is only supported for runtime=acp; got runtime=${runtime}`                });            }if (resumeSessionId && runtime !== "acp") {returnjsonResult({status"error",error`resumeSessionId is only supported for runtime=acp; got runtime=${runtime}`                });            }// 9. ACP 运行时if (runtime === "acp") {if (Array.isArray(attachments) && attachments.length > 0) {returnjsonResult({status"error",error"attachments are currently unsupported for runtime=acp; use runtime=subagent or remove attachments"                    });                }returnjsonResult(awaitspawnAcpDirect({                    task,label: label || void0,agentId: requestedAgentId,                    resumeSessionId,                    cwd,mode: mode && ACP_SPAWN_MODES.includes(mode) ? mode : void0,                    thread,                    sandbox,                    streamTo                }, {agentSessionKey: opts?.agentSessionKey,agentChannel: opts?.agentChannel,agentAccountId: opts?.agentAccountId,agentTo: opts?.agentTo,agentThreadId: opts?.agentThreadId,sandboxed: opts?.sandboxed                }));            }// 10. Subagent 运行时returnjsonResult(awaitspawnSubagentDirect({                task,label: label || void0,agentId: requestedAgentId,model: modelOverride,thinking: thinkingOverrideRaw,                runTimeoutSeconds,                thread,                mode,                cleanup,                sandbox,expectsCompletionMessagetrue,                attachments,attachMountPath: params.attachAs && typeof params.attachAs === "object" ? readStringParam$1(params.attachAs"mountPath") : void0            }, {agentSessionKey: opts?.agentSessionKey,agentChannel: opts?.agentChannel,agentAccountId: opts?.agentAccountId,agentTo: opts?.agentTo,agentThreadId: opts?.agentThreadId,agentGroupId: opts?.agentGroupId,agentGroupChannel: opts?.agentGroupChannel,agentGroupSpace: opts?.agentGroupSpace,requesterAgentIdOverride: opts?.requesterAgentIdOverride,workspaceDir: opts?.workspaceDir            }));        }    };}

2.4 运行时对比

特性
subagent
acp
运行时类型
OpenClaw 子 agent
ACP 编码会话
附件支持
最多 50 个
不支持
恢复会话
不支持
resumeSessionId
流式输出
不支持
streamTo="parent"
线程绑定
支持
支持
模式
run / session
run / session

2.5 参数限制检查

// 1. streamTo 仅支持 ACPif (streamTo && runtime !== "acp") {returnjsonResult({status"error",error`streamTo is only supported for runtime=acp`    });}// 2. resumeSessionId 仅支持 ACPif (resumeSessionId && runtime !== "acp") {returnjsonResult({status"error",error`resumeSessionId is only supported for runtime=acp`    });}// 3. attachments 不支持 ACPif (runtime === "acp" && Array.isArray(attachments) && attachments.length > 0) {returnjsonResult({status"error",error"attachments are currently unsupported for runtime=acp"    });}

2.6 执行流程图

sessions_spawn 工具调用    ↓1. 检查不支持的参数    ↓2. 解析必填参数(task)    ↓3. 解析运行时(subagent / acp)    ↓4. 解析模型和思考级别    ↓5. 解析模式(run / session)    ↓6. 解析超时    ↓7. 解析线程和附件    ↓8. 检查运行时特定限制   ├─ streamTo 仅支持 ACP   ├─ resumeSessionId 仅支持 ACP   └─ attachments 不支持 ACP    ↓9. 根据运行时选择创建方式   ├─ ACP → spawnAcpDirect   └─ Subagent → spawnSubagentDirect    ↓10. 返回结果

2.7 返回结果格式

成功(Subagent)

{"status":"ok","runId":"abc123","childSessionKey":"subagent:abc123","label":"My Task"}

成功(ACP)

{"status":"ok","runId":"abc123","threadId":"thread_123","label":"My Task"}

失败(参数错误)

{"status":"error","error":"streamTo is only supported for runtime=acp; got runtime=subagent"}

三、关键机制对比

3.1 目标定位

特性
sessions_send
sessions_spawn
目标
已有会话
创建新会话
定位方式
sessionKey / label
不适用
A2A 策略
需要检查
不需要

3.2 运行时支持

特性
sessions_send
sessions_spawn
运行时
不适用
subagent / acp
附件
不支持
仅 subagent
恢复会话
不支持
仅 ACP

3.3 安全限制

限制类型
sessions_send
sessions_spawn
可见性检查
需要
不需要
A2A 策略
需要
不需要
沙盒限制
restrictToSpawned
sandbox 参数

四、使用示例

4.1 sessions_send 工具调用

用户发送消息到主会话

大模型返回

{"tool_call":{"name":"sessions_send","arguments":{"sessionKey":"main","message":"请处理这个任务"}}}

执行结果

{"runId":"abc123","status":"sent","sessionKey":"main","delivery":{"status":"pending","mode":"announce"}}

4.2 sessions_spawn 工具调用

用户创建一个子 agent 来分析股票数据

大模型返回

{"tool_call":{"name":"sessions_spawn","arguments":{"task":"分析 AAPL 股票数据","label":"股票分析","runtime":"subagent","mode":"run"}}}

执行结果

{"status":"ok","runId":"abc123","childSessionKey":"subagent:abc123","label":"股票分析"}

五、相关工具

5.1 sessions_yield

位置:第 112197 行

constSessionsYieldToolSchema = Type.Object({ messageType.Optional(Type.String()) });functioncreateSessionsYieldTool(opts) {return {label"Yield",name"sessions_yield",description"End your current turn. Use after spawning subagents to receive their results as the next message.",parametersSessionsYieldToolSchema,executeasync (_toolCallId, args) => {const message = readStringParam$1(args, "message") || "Turn yielded.";if (!opts?.sessionId) {returnjsonResult({ status"error"error"No session context" });            }if (!opts?.onYield) {returnjsonResult({ status"error"error"Yield not supported in this context" });            }await opts.onYield(message);returnjsonResult({status"yielded",                message            });        }    };}

用途:在 spawn 子 agent 后使用,结束当前回合,接收子 agent 结果作为下一条消息。

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-04-18 01:46:41 HTTP/1.1 GET : https://www.yeyulingfeng.com/a/543521.html
  2. 运行时间 : 0.160929s [ 吞吐率:6.21req/s ] 内存消耗:4,814.11kb 文件加载:145
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=50c162d86a5ca26f855140b4245442e6
  1. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/public/index.php ( 0.79 KB )
  2. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/autoload.php ( 0.17 KB )
  3. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/composer/autoload_real.php ( 2.49 KB )
  4. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/composer/platform_check.php ( 0.90 KB )
  5. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/composer/ClassLoader.php ( 14.03 KB )
  6. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/composer/autoload_static.php ( 6.05 KB )
  7. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-helper/src/helper.php ( 8.34 KB )
  8. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-validate/src/helper.php ( 2.19 KB )
  9. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/ralouphie/getallheaders/src/getallheaders.php ( 1.60 KB )
  10. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/helper.php ( 1.47 KB )
  11. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/stubs/load_stubs.php ( 0.16 KB )
  12. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Exception.php ( 1.69 KB )
  13. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-container/src/Facade.php ( 2.71 KB )
  14. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/symfony/deprecation-contracts/function.php ( 0.99 KB )
  15. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/symfony/polyfill-mbstring/bootstrap.php ( 8.26 KB )
  16. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/symfony/polyfill-mbstring/bootstrap80.php ( 9.78 KB )
  17. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/symfony/var-dumper/Resources/functions/dump.php ( 1.49 KB )
  18. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-dumper/src/helper.php ( 0.18 KB )
  19. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/symfony/var-dumper/VarDumper.php ( 4.30 KB )
  20. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/guzzlehttp/guzzle/src/functions_include.php ( 0.16 KB )
  21. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/guzzlehttp/guzzle/src/functions.php ( 5.54 KB )
  22. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/App.php ( 15.30 KB )
  23. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-container/src/Container.php ( 15.76 KB )
  24. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/psr/container/src/ContainerInterface.php ( 1.02 KB )
  25. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/provider.php ( 0.19 KB )
  26. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Http.php ( 6.04 KB )
  27. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-helper/src/helper/Str.php ( 7.29 KB )
  28. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Env.php ( 4.68 KB )
  29. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/common.php ( 0.03 KB )
  30. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/helper.php ( 18.78 KB )
  31. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Config.php ( 5.54 KB )
  32. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/alipay.php ( 3.59 KB )
  33. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/facade/Env.php ( 1.67 KB )
  34. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/app.php ( 0.95 KB )
  35. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/cache.php ( 0.78 KB )
  36. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/console.php ( 0.23 KB )
  37. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/cookie.php ( 0.56 KB )
  38. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/database.php ( 2.48 KB )
  39. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/filesystem.php ( 0.61 KB )
  40. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/lang.php ( 0.91 KB )
  41. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/log.php ( 1.35 KB )
  42. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/middleware.php ( 0.19 KB )
  43. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/route.php ( 1.89 KB )
  44. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/session.php ( 0.57 KB )
  45. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/trace.php ( 0.34 KB )
  46. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/view.php ( 0.82 KB )
  47. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/event.php ( 0.25 KB )
  48. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Event.php ( 7.67 KB )
  49. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/service.php ( 0.13 KB )
  50. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/AppService.php ( 0.26 KB )
  51. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Service.php ( 1.64 KB )
  52. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Lang.php ( 7.35 KB )
  53. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/lang/zh-cn.php ( 13.70 KB )
  54. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/initializer/Error.php ( 3.31 KB )
  55. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/initializer/RegisterService.php ( 1.33 KB )
  56. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/services.php ( 0.14 KB )
  57. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/service/PaginatorService.php ( 1.52 KB )
  58. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/service/ValidateService.php ( 0.99 KB )
  59. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/service/ModelService.php ( 2.04 KB )
  60. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-trace/src/Service.php ( 0.77 KB )
  61. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Middleware.php ( 6.72 KB )
  62. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/initializer/BootService.php ( 0.77 KB )
  63. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/Paginator.php ( 11.86 KB )
  64. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-validate/src/Validate.php ( 63.20 KB )
  65. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/Model.php ( 23.55 KB )
  66. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/Attribute.php ( 21.05 KB )
  67. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/AutoWriteData.php ( 4.21 KB )
  68. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/Conversion.php ( 6.44 KB )
  69. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/DbConnect.php ( 5.16 KB )
  70. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/ModelEvent.php ( 2.33 KB )
  71. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/RelationShip.php ( 28.29 KB )
  72. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-helper/src/contract/Arrayable.php ( 0.09 KB )
  73. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-helper/src/contract/Jsonable.php ( 0.13 KB )
  74. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/contract/Modelable.php ( 0.09 KB )
  75. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Db.php ( 2.88 KB )
  76. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/DbManager.php ( 8.52 KB )
  77. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Log.php ( 6.28 KB )
  78. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Manager.php ( 3.92 KB )
  79. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/psr/log/src/LoggerTrait.php ( 2.69 KB )
  80. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/psr/log/src/LoggerInterface.php ( 2.71 KB )
  81. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Cache.php ( 4.92 KB )
  82. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/psr/simple-cache/src/CacheInterface.php ( 4.71 KB )
  83. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-helper/src/helper/Arr.php ( 16.63 KB )
  84. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/cache/driver/File.php ( 7.84 KB )
  85. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/cache/Driver.php ( 9.03 KB )
  86. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/contract/CacheHandlerInterface.php ( 1.99 KB )
  87. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/Request.php ( 0.09 KB )
  88. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Request.php ( 55.78 KB )
  89. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/middleware.php ( 0.25 KB )
  90. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Pipeline.php ( 2.61 KB )
  91. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-trace/src/TraceDebug.php ( 3.40 KB )
  92. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/middleware/SessionInit.php ( 1.94 KB )
  93. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Session.php ( 1.80 KB )
  94. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/session/driver/File.php ( 6.27 KB )
  95. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/contract/SessionHandlerInterface.php ( 0.87 KB )
  96. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/session/Store.php ( 7.12 KB )
  97. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Route.php ( 23.73 KB )
  98. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/RuleName.php ( 5.75 KB )
  99. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/Domain.php ( 2.53 KB )
  100. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/RuleGroup.php ( 22.43 KB )
  101. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/Rule.php ( 26.95 KB )
  102. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/RuleItem.php ( 9.78 KB )
  103. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/route/app.php ( 3.94 KB )
  104. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/facade/Route.php ( 4.70 KB )
  105. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/dispatch/Controller.php ( 4.74 KB )
  106. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/Dispatch.php ( 10.44 KB )
  107. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/controller/Index.php ( 9.87 KB )
  108. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/BaseController.php ( 2.05 KB )
  109. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/facade/Db.php ( 0.93 KB )
  110. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/connector/Mysql.php ( 5.44 KB )
  111. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/PDOConnection.php ( 52.47 KB )
  112. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/Connection.php ( 8.39 KB )
  113. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/ConnectionInterface.php ( 4.57 KB )
  114. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/builder/Mysql.php ( 16.58 KB )
  115. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/Builder.php ( 24.06 KB )
  116. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/BaseBuilder.php ( 27.50 KB )
  117. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/Query.php ( 15.71 KB )
  118. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/BaseQuery.php ( 45.13 KB )
  119. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/TimeFieldQuery.php ( 7.43 KB )
  120. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/AggregateQuery.php ( 3.26 KB )
  121. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/ModelRelationQuery.php ( 20.07 KB )
  122. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/ParamsBind.php ( 3.66 KB )
  123. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/ResultOperation.php ( 7.01 KB )
  124. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/WhereQuery.php ( 19.37 KB )
  125. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/JoinAndViewQuery.php ( 7.11 KB )
  126. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/TableFieldInfo.php ( 2.63 KB )
  127. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/Transaction.php ( 2.77 KB )
  128. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/log/driver/File.php ( 5.96 KB )
  129. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/contract/LogHandlerInterface.php ( 0.86 KB )
  130. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/log/Channel.php ( 3.89 KB )
  131. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/event/LogRecord.php ( 1.02 KB )
  132. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-helper/src/Collection.php ( 16.47 KB )
  133. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/facade/View.php ( 1.70 KB )
  134. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/View.php ( 4.39 KB )
  135. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/controller/Es.php ( 3.30 KB )
  136. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Response.php ( 8.81 KB )
  137. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/response/View.php ( 3.29 KB )
  138. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Cookie.php ( 6.06 KB )
  139. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-view/src/Think.php ( 8.38 KB )
  140. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/contract/TemplateHandlerInterface.php ( 1.60 KB )
  141. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-template/src/Template.php ( 46.61 KB )
  142. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-template/src/template/driver/File.php ( 2.41 KB )
  143. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-template/src/template/contract/DriverInterface.php ( 0.86 KB )
  144. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/runtime/temp/c935550e3e8a3a4c27dd94e439343fdf.php ( 31.80 KB )
  145. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-trace/src/Html.php ( 4.42 KB )
  1. CONNECT:[ UseTime:0.000996s ] mysql:host=127.0.0.1;port=3306;dbname=wenku;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.001478s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.000540s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000657s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.001215s ]
  6. SELECT * FROM `set` [ RunTime:0.000447s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.001284s ]
  8. SELECT * FROM `article` WHERE `id` = 543521 LIMIT 1 [ RunTime:0.001424s ]
  9. UPDATE `article` SET `lasttime` = 1776448002 WHERE `id` = 543521 [ RunTime:0.005530s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 64 LIMIT 1 [ RunTime:0.000529s ]
  11. SELECT * FROM `article` WHERE `id` < 543521 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.000892s ]
  12. SELECT * FROM `article` WHERE `id` > 543521 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.000930s ]
  13. SELECT * FROM `article` WHERE `id` < 543521 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.004029s ]
  14. SELECT * FROM `article` WHERE `id` < 543521 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.002525s ]
  15. SELECT * FROM `article` WHERE `id` < 543521 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.001707s ]
0.162665s