乐于分享
好东西不私藏

OpenClaw工具拆解之subagents+gateway

OpenClaw工具拆解之subagents+gateway

一、subagents 工具

1.1 工具概述

功能:管理已生成的子 agent核心特性

  • • 3 个 actions(list/kill/steer)
  • • 支持按标签/序号/会话键定位
  • • 支持批量终止(target=all)
  • • 消息长度限制(4000 字符)
  • • 最近活跃度过滤(recentMinutes)

1.2 Schema 定义

位置:第 112950 行

constSubagentsToolSchema = Type.Object({actionoptionalStringEnum$3(["list""kill""steer"]),targetType.Optional(Type.String()),messageType.Optional(Type.String()),recentMinutesType.Optional(Type.Number({ minimum1 }))});

1.3 完整执行代码

位置:第 112961 行

functioncreateSubagentsTool(opts) {return {label"Subagents",name"subagents",description"List, kill, or steer spawned sub-agents for this requester session. Use this for sub-agent orchestration.",parametersSubagentsToolSchema,executeasync (_toolCallId, args) => {const params = args;// 1. 解析 action(默认 list)const action = readStringParam$1(params, "action") ?? "list";const cfg = loadConfig();// 2. 解析子 agent 控制器const controller = resolveSubagentController({                cfg,agentSessionKey: opts?.agentSessionKey            });// 3. 获取子 agent 运行列表const runs = listControlledSubagentRuns(controller.controllerSessionKey);const recentMinutesRaw = readNumberParam(params, "recentMinutes");const recentMinutes = recentMinutesRaw ? Math.max(1Math.min(MAX_RECENT_MINUTESMath.floor(recentMinutesRaw))) : 30;const pendingDescendantCount = createPendingDescendantCounter();constisActive = (entry) => isActiveSubagentRun(entry, pendingDescendantCount);// === action: list ===if (action === "list") {const list = buildSubagentList({                    cfg,                    runs,                    recentMinutes                });returnjsonResult({status"ok",action"list",requesterSessionKey: controller.controllerSessionKey,callerSessionKey: controller.callerSessionKey,callerIsSubagent: controller.callerIsSubagent,total: list.total,active: list.active.map(({ line: _line, ...view }) => view),recent: list.recent.map(({ line: _line, ...view }) => view),text: list.text                });            }// === action: kill ===if (action === "kill") {const target = readStringParam$1(params, "target", { requiredtrue });// 批量终止if (target === "all" || target === "*") {const result = awaitkillAllControlledSubagentRuns({                        cfg,                        controller,                        runs                    });if (result.status === "forbidden") {returnjsonResult({status"forbidden",action"kill",target"all",error: result.error                        });                    }returnjsonResult({status"ok",action"kill",target"all",killed: result.killed,labels: result.labels,text: result.killed > 0 ? `killed ${result.killed} subagent${result.killed === 1 ? "" : "s"}.` : "no running subagents to kill."                    });                }// 单个终止const resolved = resolveControlledSubagentTarget(runs, target, {                    recentMinutes,                    isActive                });if (!resolved.entry) {returnjsonResult({status"error",action"kill",                        target,error: resolved.error ?? "Unknown subagent target."                    });                }const result = awaitkillControlledSubagentRun({                    cfg,                    controller,entry: resolved.entry                });returnjsonResult({status: result.status,action"kill",                    target,runId: result.runId,sessionKey: result.sessionKey,label: result.label,cascadeKilled"cascadeKilled"in result ? result.cascadeKilled : void0,cascadeLabels"cascadeLabels"in result ? result.cascadeLabels : void0,error"error"in result ? result.error : void0,text: result.text                });            }// === action: steer ===if (action === "steer") {const target = readStringParam$1(params, "target", { requiredtrue });const message = readStringParam$1(params, "message", { requiredtrue });// 检查消息长度if (message.length > 4000) {returnjsonResult({status"error",action"steer",                        target,error`Message too long (${message.length} chars, max ${MAX_STEER_MESSAGE_CHARS}).`                    });                }const resolved = resolveControlledSubagentTarget(runs, target, {                    recentMinutes,                    isActive                });if (!resolved.entry) {returnjsonResult({status"error",action"steer",                        target,error: resolved.error ?? "Unknown subagent target."                    });                }const result = awaitsteerControlledSubagentRun({                    cfg,                    controller,entry: resolved.entry,                    message                });returnjsonResult({status: result.status,action"steer",                    target,runId: result.runId,sessionKey: result.sessionKey,sessionId: result.sessionId,mode"mode"in result ? result.mode : void0,label"label"in result ? result.label : void0,error"error"in result ? result.error : void0,text: result.text                });            }returnjsonResult({status"error",error"Unsupported action."            });        }    };}

1.4 子 agent 定位逻辑

functionresolveControlledSubagentTarget(runs, target, options) {const { recentMinutes, isActive } = options;// 1. 排序运行列表(按开始时间倒序)const sorted = sortSubagentRuns(runs);// 2. 去重(按 childSessionKey)const deduped = [];const seenChildSessionKeys = newSet();for (const entry of sorted) {if (seenChildSessionKeys.has(entry.childSessionKey)) continue;        seenChildSessionKeys.add(entry.childSessionKey);        deduped.push(entry);    }// 3. 特殊值:lastif (target === "last") {return { entry: deduped[0] };    }// 4. 序号定位(1-based)if (/^\d+$/.test(target)) {const idx = Number.parseInt(target, 10);const numericOrder = [            ...deduped.filter((entry) =>isActive(entry)),            ...deduped.filter((entry) => !isActive(entry) && !!entry.endedAt && (entry.endedAt ?? 0) >= recentCutoff)        ];if (!Number.isFinite(idx) || idx <= 0 || idx > numericOrder.length) {return { error`Invalid index: ${target}` };        }return { entry: numericOrder[idx - 1] };    }// 5. 会话键定位if (target.includes(":")) {const bySessionKey = deduped.find((entry) => entry.childSessionKey === target);return bySessionKey ? { entry: bySessionKey } : { error`Unknown session: ${target}` };    }// 6. 精确标签匹配const lowered = target.toLowerCase();const byExactLabel = deduped.filter((entry) => entry.label.toLowerCase() === lowered);if (byExactLabel.length === 1) {return { entry: byExactLabel[0] };    }if (byExactLabel.length > 1) {return { error`Ambiguous label: ${target}` };    }// 7. 标签前缀匹配const byLabelPrefix = deduped.filter((entry) => entry.label.toLowerCase().startsWith(lowered));if (byLabelPrefix.length === 1) {return { entry: byLabelPrefix[0] };    }if (byLabelPrefix.length > 1) {return { error`Ambiguous label prefix: ${target}` };    }// 8. runId 前缀匹配const byRunIdPrefix = deduped.filter((entry) => entry.runId.startsWith(target));if (byRunIdPrefix.length === 1) {return { entry: byRunIdPrefix[0] };    }if (byRunIdPrefix.length > 1) {return { error`Ambiguous runId prefix: ${target}` };    }return { error`Unknown target: ${target}` };}

1.5 执行流程图

subagents 工具调用    ↓1. 解析 action(list/kill/steer)    ↓2. 解析子 agent 控制器    ↓3. 获取子 agent 运行列表    ↓4. 根据 action 执行    ├─ list → 构建列表(活跃 + 最近)    ├─ kill → 终止子 agent    │  ├─ target=all → 批量终止    │  └─ target=xxx → 定位后终止    └─ steer → 发送消息给子 agent       ├─ 检查消息长度(≤4000)       ├─ 定位子 agent       └─ 发送消息    ↓5. 返回结果

1.6 返回结果格式

list 成功

{"status":"ok","action":"list","total":5,"active":[{"runId":"abc123","label":"文件分析","status":"running","startedAt":1711716000000,"runtimeMs":60000}],"recent":[...],"text":"Active:\n[1] 文件分析 (running, 1m)\n..."}

kill 成功

{"status":"ok","action":"kill","target":"1","killed":1,"labels":["文件分析"],"text":"killed 1 subagent."}

steer 成功

{"status":"ok","action":"steer","target":"文件分析","runId":"abc123","sessionKey":"subagent:abc123","text":"Message sent to subagent."}

二、gateway 工具

2.1 工具概述

功能:管理 Gateway 服务核心特性

  • • 仅所有者可用(ownerOnly=true)
  • • 6 个 actions(restart/config.get/config.schema.lookup/config.apply/config.patch/update.run)
  • • 配置写入需要 baseHash(乐观锁)
  • • 重启后通知用户(note 参数)
  • • SIGUSR1 信号重启

2.2 Schema 定义

位置:第 25780 行

constGatewayToolSchema = Type.Object({actionstringEnum(["restart","config.get","config.schema.lookup","config.apply","config.patch","update.run"    ]),delayMsType.Optional(Type.Number()),reasonType.Optional(Type.String()),gatewayUrlType.Optional(Type.String()),gatewayTokenType.Optional(Type.String()),timeoutMsType.Optional(Type.Number()),pathType.Optional(Type.String()),rawType.Optional(Type.String()),baseHashType.Optional(Type.String()),sessionKeyType.Optional(Type.String()),noteType.Optional(Type.String()),restartDelayMsType.Optional(Type.Number())});

2.3 完整执行代码

位置:第 25801 行

functioncreateGatewayTool(opts) {return {label"Gateway",name"gateway",ownerOnlytrue,description"Restart, inspect a specific config schema path, apply config, or update the gateway in-place (SIGUSR1). Use config.schema.lookup with a targeted dot path before config edits. Use config.patch for safe partial config updates (merges with existing). Use config.apply only when replacing entire config. Both trigger restart after writing. Always pass a human-readable completion message via the `note` parameter so the system can deliver it to the user after restart.",parametersGatewayToolSchema,executeasync (_toolCallId, args) => {const params = args;// 1. 解析 action(必填)const action = readStringParam$1(params, "action", { requiredtrue });// === action: restart ===if (action === "restart") {// 检查重启是否启用if (!isRestartEnabled(opts?.config)) {thrownewError("Gateway restart is disabled (commands.restart=false).");                }const sessionKey = typeof params.sessionKey === "string" && params.sessionKey.trim() ?                     params.sessionKey.trim() : opts?.agentSessionKey?.trim() || void0;const delayMs = typeof params.delayMs === "number" && Number.isFinite(params.delayMs) ? Math.floor(params.delayMs) : void0;const reason = typeof params.reason === "string" && params.reason.trim() ?                     params.reason.trim().slice(0200) : void0;const note = typeof params.note === "string" && params.note.trim() ?                     params.note.trim() : void0;const { deliveryContext, threadId } = extractDeliveryInfo(sessionKey);// 写入重启 sentinelconst payload = {kind"restart",status"ok",tsDate.now(),                    sessionKey,                    deliveryContext,                    threadId,message: note ?? reason ?? null,doctorHintformatDoctorNonInteractiveHint(),stats: {mode"gateway.restart",                        reason                    }                };try {awaitwriteRestartSentinel(payload);                } catch {}                log$28.info(`gateway tool: restart requested (delayMs=${delayMs ?? "default"}, reason=${reason ?? "none"})`);returnjsonResult(scheduleGatewaySigusr1Restart({                    delayMs,                    reason                }));            }// 读取 Gateway 调用选项const gatewayOpts = readGatewayCallOptions(params);// 解析 Gateway 写入元数据constresolveGatewayWriteMeta = () => {return {sessionKeytypeof params.sessionKey === "string" && params.sessionKey.trim() ?                         params.sessionKey.trim() : opts?.agentSessionKey?.trim() || void0,notetypeof params.note === "string" && params.note.trim() ?                         params.note.trim() : void0,restartDelayMstypeof params.restartDelayMs === "number" && Number.isFinite(params.restartDelayMs) ? Math.floor(params.restartDelayMs) : void0                };            };// 解析配置写入参数constresolveConfigWriteParams = async () => {const raw = readStringParam$1(params, "raw", { requiredtrue });let baseHash = readStringParam$1(params, "baseHash");if (!baseHash) {                    baseHash = resolveBaseHashFromSnapshot(awaitcallGatewayTool("config.get", gatewayOpts, {})                    );                }if (!baseHash) {thrownewError("Missing baseHash from config snapshot.");                }return {                    raw,                    baseHash,                    ...resolveGatewayWriteMeta()                };            };// === action: config.get ===if (action === "config.get") {returnjsonResult({oktrue,resultawaitcallGatewayTool("config.get", gatewayOpts, {})                });            }// === action: config.schema.lookup ===if (action === "config.schema.lookup") {returnjsonResult({oktrue,resultawaitcallGatewayTool("config.schema.lookup", gatewayOpts, {pathreadStringParam$1(params, "path", {requiredtrue,label"path"                        })                    })                });            }// === action: config.apply ===if (action === "config.apply") {const { raw, baseHash, sessionKey, note, restartDelayMs } = awaitresolveConfigWriteParams();returnjsonResult({oktrue,resultawaitcallGatewayTool("config.apply", gatewayOpts, {                        raw,                        baseHash,                        sessionKey,                        note,                        restartDelayMs                    })                });            }// === action: config.patch ===if (action === "config.patch") {const { raw, baseHash, sessionKey, note, restartDelayMs } = awaitresolveConfigWriteParams();returnjsonResult({oktrue,resultawaitcallGatewayTool("config.patch", gatewayOpts, {                        raw,                        baseHash,                        sessionKey,                        note,                        restartDelayMs                    })                });            }// === action: update.run ===if (action === "update.run") {const { sessionKey, note, restartDelayMs } = resolveGatewayWriteMeta();const updateTimeoutMs = gatewayOpts.timeoutMs ?? DEFAULT_UPDATE_TIMEOUT_MS;returnjsonResult({oktrue,resultawaitcallGatewayTool("update.run", {                        ...gatewayOpts,timeoutMs: updateTimeoutMs                    }, {                        sessionKey,                        note,                        restartDelayMs,timeoutMs: updateTimeoutMs                    })                });            }thrownewError(`Unknown action: ${action}`);        }    };}

2.5 配置写入流程

// 1. 获取当前配置快照const config = awaitcallGatewayTool("config.get", gatewayOpts, {});// 2. 提取 baseHash(乐观锁)const baseHash = resolveBaseHashFromSnapshot(config);// 3. 准备新配置const raw = JSON.stringify({ ...config, newSetting"value" });// 4. 写入配置(config.apply 或 config.patch)awaitcallGatewayTool("config.apply", gatewayOpts, {    raw,    baseHash,    sessionKey,    note,    restartDelayMs});// 5. Gateway 自动重启(SIGUSR1)

2.6 执行流程图

gateway 工具调用    ↓1. 解析 action(必填)    ↓2. 根据 action 执行    ├─ restart → 写入 sentinel + SIGUSR1    ├─ config.get → 获取配置    ├─ config.schema.lookup → 查询 schema    ├─ config.apply → 应用完整配置    ├─ config.patch → 应用部分配置    └─ update.run → 执行更新    ↓3. 返回结果

2.7 返回结果格式

restart 成功

{"ok":true,"result":{"status":"scheduled","delayMs":1000,"reason":"config update"}}

config.get 成功

{"ok":true,"result":{"hash":"abc123","config":{ ... }}}

config.apply 失败(baseHash 不匹配)

{"ok":false,"error":"Config hash mismatch. Please refresh and retry."}

三、关键机制对比

3.1 权限控制

特性
subagents
gateway
所有者限制
ownerOnly=true
A2A 策略
不需要
不需要
可见性检查
不需要
不需要

3.2 操作类型

特性
subagents
gateway
actions
list/kill/steer
restart/config.* /update.run
定位目标
target 参数
不需要
批量操作
target=all
不支持

3.3 安全限制

限制类型
subagents
gateway
消息长度
4000 字符
不支持
乐观锁
不需要
baseHash 必需
重启限制
不需要
commands.restart

四、使用示例

4.1 subagents 工具调用

用户列出所有子 agent

大模型返回

{"tool_call":{"name":"subagents","arguments":{"action":"list"}}}

执行结果

{"status":"ok","action":"list","total":3,"active":[...],"recent":[...],"text":"Active:\n[1] 文件分析 (running, 1m)\n[2] 数据处理 (running, 5m)\n..."}

4.2 gateway 工具调用

用户重启 Gateway

大模型返回

{"tool_call":{"name":"gateway","arguments":{"action":"restart","note":"配置更新完成"}}}

执行结果

{"ok":true,"result":{"status":"scheduled","delayMs":1000,"reason":null}}
基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-04-25 09:15:52 HTTP/1.1 GET : https://www.yeyulingfeng.com/a/551016.html
  2. 运行时间 : 0.084380s [ 吞吐率:11.85req/s ] 内存消耗:4,796.81kb 文件加载:145
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=70b2f32166f4fc046632a81616e58799
  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.50 KB )
  145. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-trace/src/Html.php ( 4.42 KB )
  1. CONNECT:[ UseTime:0.000522s ] mysql:host=127.0.0.1;port=3306;dbname=wenku;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.000824s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.000388s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000276s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.000542s ]
  6. SELECT * FROM `set` [ RunTime:0.000203s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.000607s ]
  8. SELECT * FROM `article` WHERE `id` = 551016 LIMIT 1 [ RunTime:0.000520s ]
  9. UPDATE `article` SET `lasttime` = 1777079752 WHERE `id` = 551016 [ RunTime:0.000819s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 64 LIMIT 1 [ RunTime:0.000225s ]
  11. SELECT * FROM `article` WHERE `id` < 551016 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.000482s ]
  12. SELECT * FROM `article` WHERE `id` > 551016 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.002202s ]
  13. SELECT * FROM `article` WHERE `id` < 551016 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.001143s ]
  14. SELECT * FROM `article` WHERE `id` < 551016 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.000745s ]
  15. SELECT * FROM `article` WHERE `id` < 551016 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.001233s ]
0.086001s