乐于分享
好东西不私藏

OpenClaw架构解析:设计哲学

OpenClaw架构解析:设计哲学

阅读时间:30分钟

难度等级:⭐⭐⭐⭐⭐ 原理篇

你将收获:理解OpenClaw的设计哲学和架构思想


从记忆到架构:为什么学这个?

前两篇你学会了核心循环和记忆系统,理解了Agent的"大脑"如何工作。

核心循环:感知-思考-行动

记忆系统:Agent如何"记住"

但还有更深层的问题:

  • "OpenClaw整体是怎么设计的?"
  • "为什么要这样设计?"
  • "和其他框架有什么区别?"
  • "我能扩展它吗?"

这一篇,带你走进OpenClaw的"骨架"——架构设计。


一、设计理念

1.1OpenClaw是什么?

一句话定义:

OpenClaw是一个AI Agent操作系统

为什么叫"操作系统"?

操作系统
OpenClaw
管理硬件资源
管理AI能力资源
调度进程
调度Agent
提供系统调用
提供Skill API
文件系统
记忆系统
进程隔离
Agent隔离
标准接口
标准工具接口

1.2核心设计原则

原则1:模块化

❌ 糟糕的设计:一个大黑盒┌─────────────────────────┐│     巨型Agent系统       ││  (所有功能都耦合在一起) │└─────────────────────────┘✅ 好的设计:模块化┌───────┐  ┌───────┐  ┌───────┐│ Agent │  │ Skill │  │Memory ││Runtime│  │System │  │System │└───────┘  └───────┘  └───────┘    ↓          ↓          ↓┌─────────────────────────────┐│       通信总线(Bus)        │└─────────────────────────────┘

原则2:可扩展

yaml# 添加新能力,只需添加新模块skills:  - official/weather# 官方技能  - community/translator# 社区技能  - custom/my-skill# 自定义技能tools:  - web_search# 内置工具  - database# 自定义工具

原则3:高可用

设计考虑:• 单点故障:Agent崩溃不影响其他Agent• 资源限制:防止一个Agent耗尽资源• 优雅降级:部分功能失败,整体仍可用• 错误隔离:错误不传播

原则4:易用性

新手:一条命令安装,5分钟上手进阶:写个配置文件就能开发Skill高级:深度定制,扩展核心

二、整体架构

2.1架构全景图

┌─────────────────────────────────────────────────────────────┐│                      应用层(Application)                    ││  ┌─────────┐  ┌─────────┐  ┌─────────┐  ┌─────────┐        ││  │  Agent  │  │Workflow │  │  Skill  │  │  Chat   │        ││  │   实例  │  │  编排   │  │  市场   │  │  界面   │        ││  └─────────┘  └─────────┘  └─────────┘  └─────────┘        │├─────────────────────────────────────────────────────────────┤│                      运行时层(Runtime)                      ││  ┌─────────────┐  ┌─────────────┐  ┌─────────────┐         ││  │   Agent     │  │    Task     │  │   Event     │         ││  │   Runtime   │  │  Scheduler  │  │    Bus      │         ││  └─────────────┘  └─────────────┘  └─────────────┘         │├─────────────────────────────────────────────────────────────┤│                      服务层(Service)                        ││  ┌─────────┐  ┌─────────┐  ┌─────────┐  ┌─────────┐        ││  │ Memory  │  │  Tool   │  │  LLM    │  │Communic │        ││  │ System  │  │ Manager │  │ Client  │  │  Layer  │        ││  └─────────┘  └─────────┘  └─────────┘  └─────────┘        │├─────────────────────────────────────────────────────────────┤│                    基础设施层(Infrastructure)                ││  ┌─────────────┐  ┌─────────────┐  ┌─────────────┐         ││  │   Storage   │  │   Network   │  │   Security  │         ││  │  (存储)     │  │   (网络)    │  │   (安全)    │         ││  └─────────────┘  └─────────────┘  └─────────────┘         │└─────────────────────────────────────────────────────────────┘

2.2四层架构详解

第一层:应用层

作用:面向用户的界面和工具组件:• Agent实例:用户创建的Agent• Workflow编排:工作流编辑器• Skill市场:技能商店• Chat界面:对话界面

第二层:运行时层

作用:管理和调度Agent执行组件:• Agent Runtime:Agent运行环境• Task Scheduler:任务调度器• Event Bus:事件总线

第三层:服务层

作用:提供核心能力组件:• Memory System:记忆系统• Tool Manager:工具管理器• LLM Client:LLM客户端• Communication Layer:通信层

第四层:基础设施层

作用:底层支撑组件:• Storage:存储(文件、数据库)• Network:网络(HTTP、WebSocket)• Security:安全(认证、授权)

三、核心组件

3.1Agent Runtime

作用:Agent的运行环境

pythonclassAgentRuntime:"""Agent运行时"""def__init__(self,config:AgentConfig):self.agent_id=generate_id()self.config=configself.memory=MemorySystem()self.tools=ToolManager()self.llm=LLMClient(config.model)self.state="idle"asyncdefrun(self,input:str)->str:"""运行Agent"""self.state="running"try:# 核心循环whileTrue:# 感知context=self.perceive(input)# 思考action=self.think(context)# 行动result=awaitself.act(action)# 反思should_continue=self.reflect(result)ifnotshould_continue:breakself.state="completed"returnresultexceptExceptionase:self.state="error"raisedefperceive(self,input:str)->dict:"""感知:加载上下文"""context={"input":input,"history":self.memory.get_recent(),"user_prefs":self.memory.get_preferences()}returncontextdefthink(self,context:dict)->dict:"""思考:决策下一步行动"""prompt=self.build_prompt(context)response=self.llm.generate(prompt)action=self.parse_action(response)returnactionasyncdefact(self,action:dict)->str:"""行动:执行工具"""tool_name=action["tool"]params=action["params"]tool=self.tools.get(tool_name)result=awaittool.execute(**params)returnresultdefreflect(self,result:str)->bool:"""反思:判断是否继续"""# 评估结果,决定是否需要继续循环returnnotself.is_task_complete(result)

3.2Skill System

作用:管理和执行Skill

pythonclassSkillSystem:"""技能系统"""def__init__(self):self.skills={}# 注册的技能self.loader=SkillLoader()defregister(self,skill_path:str):"""注册技能"""skill=self.loader.load(skill_path)self.skills[skill.name]=skilldeffind(self,task:str)->Skill:"""查找合适的技能"""# 向量搜索匹配forskillinself.skills.values():ifskill.matches(task):returnskillreturnNoneasyncdefexecute(self,skill_name:str,params:dict)->str:"""执行技能"""skill=self.skills.get(skill_name)ifnotskill:raiseSkillNotFoundError(skill_name)# 按工作流执行result=awaitskill.run(params)returnresultclassSkill:"""技能定义"""def__init__(self,config:dict):self.name=config["name"]self.description=config["description"]self.parameters=config.get("parameters",{})self.workflow=config.get("workflow",[])asyncdefrun(self,params:dict)->str:"""执行工作流"""context=paramsforstepinself.workflow:action=step["action"]input_data=self.interpolate(step.get("input",""),context)# 执行动作output=awaitself.execute_action(action,input_data)context[step.get("as",action)]=outputreturncontext.get("result","")

3.3Memory System

作用:记忆管理

pythonclassMemorySystem:"""记忆系统(回顾第12篇)"""def__init__(self,config:MemoryConfig):# 工作记忆(内存)self.working=WorkingMemory(max_tokens=config.max_tokens)# 对话记忆(数据库)self.conversation=ConversationDB(config.db_path)# 知识记忆(向量库)self.knowledge=VectorDB(config.vector_db)# 技能记忆(文件系统)self.skills=SkillStore(config.skills_dir)defremember(self,info:dict,memory_type:str="working"):"""记住信息"""ifmemory_type=="working":self.working.add(info)elifmemory_type=="conversation":self.conversation.save(info)elifmemory_type=="knowledge":self.knowledge.add(info)defrecall(self,query:str,types:list=None)->dict:"""回忆信息"""results={}ifnottypesor"working"intypes:results["working"]=self.working.get_recent()ifnottypesor"conversation"intypes:results["conversation"]=self.conversation.search(query)ifnottypesor"knowledge"intypes:results["knowledge"]=self.knowledge.query(query)returnresults

3.4Tool Manager

作用:工具注册和调用

pythonclassToolManager:"""工具管理器"""def__init__(self):self.tools={}self.permissions={}defregister(self,tool:Tool,permission:str="user"):"""注册工具"""self.tools[tool.name]=toolself.permissions[tool.name]=permissiondefget(self,name:str)->Tool:"""获取工具"""ifnamenotinself.tools:raiseToolNotFoundError(name)returnself.tools[name]deflist_tools(self)->list:"""列出所有工具"""return[{"name":tool.name,"description":tool.description,"parameters":tool.parameters}fortoolinself.tools.values()]classTool:"""工具定义"""def__init__(self,name:str,func:callable,schema:dict):self.name=nameself.func=funcself.description=schema.get("description","")self.parameters=schema.get("parameters",{})asyncdefexecute(self,**params)->any:"""执行工具"""# 参数验证self.validate_params(params)# 执行ifasyncio.iscoroutinefunction(self.func):result=awaitself.func(**params)else:result=self.func(**params)returnresultdefvalidate_params(self,params:dict):"""验证参数"""required=[kfork,vinself.parameters.items()ifv.get("required",False)]missing=set(required)-set(params.keys())ifmissing:raiseValidationError(f"缺少参数: {missing}")

3.5Communication Bus

作用:组件间通信

pythonclassEventBus:"""事件总线"""def__init__(self):self.subscribers=defaultdict(list)defsubscribe(self,event_type:str,handler:callable):"""订阅事件"""self.subscribers[event_type].append(handler)asyncdefpublish(self,event:Event):"""发布事件"""handlers=self.subscribers.get(event.type,[])tasks=[handler(event)forhandlerinhandlers]awaitasyncio.gather(*tasks)# 事件类型classEvent:"""事件基类"""passclassTaskStartedEvent(Event):type="task.started"classTaskCompletedEvent(Event):type="task.completed"classToolCalledEvent(Event):type="tool.called"classErrorEvent(Event):type="error"# 使用示例bus=EventBus()# 订阅bus.subscribe("task.completed",lambdae:print(f"任务完成: {e.task_id}"))# 发布awaitbus.publish(TaskCompletedEvent(task_id="123",result="success"))

四、关键设计

4.1插件化架构

设计思想:一切皆插件

pythonclassPluginSystem:"""插件系统"""def__init__(self):self.plugins={}self.hooks=defaultdict(list)defregister_plugin(self,plugin:Plugin):"""注册插件"""self.plugins[plugin.name]=plugin# 注册钩子forhook_name,handlerinplugin.hooks.items():self.hooks[hook_name].append(handler)# 调用生命周期plugin.on_load()asyncdeftrigger_hook(self,hook_name:str,*args,**kwargs):"""触发钩子"""handlers=self.hooks.get(hook_name,[])results=[]forhandlerinhandlers:result=awaithandler(*args,**kwargs)results.append(result)returnresults# 示例插件classWeatherPlugin(Plugin):"""天气插件"""name="weather"hooks={"tool.register":"register_tools","skill.register":"register_skills"}defon_load(self):print("天气插件加载")defregister_tools(self):return[WeatherTool()]defregister_skills(self):return[WeatherQuerySkill()]

4.2事件驱动

设计思想:异步解耦

同步调用(耦合):┌───────┐      ┌───────┐│ Agent │ ───→ │ Tool  │(等待返回)└───────┘      └───────┘事件驱动(解耦):┌───────┐      ┌───────┐      ┌───────┐│ Agent │ ───→ │  Bus  │ ───→ │ Tool  │└───────┘      └───────┘      └───────┘    ↑                              │    └──────────────────────────────┘

4.3状态机

设计思想:状态管理

pythonclassAgentStateMachine:"""Agent状态机"""# 状态定义IDLE="idle"RUNNING="running"WAITING="waiting"COMPLETED="completed"ERROR="error"# 状态转换TRANSITIONS={IDLE:[RUNNING],RUNNING:[WAITING,COMPLETED,ERROR],WAITING:[RUNNING,COMPLETED,ERROR],COMPLETED:[IDLE],ERROR:[IDLE]}def__init__(self):self.state=self.IDLEdeftransition(self,new_state:str):"""状态转换"""ifnew_statenotinself.TRANSITIONS[self.state]:raiseInvalidTransitionError(f"不能从 {self.state} 转换到 {new_state}")old_state=self.stateself.state=new_state# 触发事件self.on_state_change(old_state,new_state)defon_state_change(self,old_state:str,new_state:str):"""状态变化回调"""print(f"状态变化: {old_state} → {new_state}")

五、与其他框架对比

5.1vs LangChain

维度
OpenClaw
LangChain
定位
Agent操作系统
LLM应用框架
复杂度
较高
中等
灵活性
学习曲线
较陡
平缓
适合场景
复杂Agent系统
单一LLM应用
生态
新兴
成熟

选择建议:

选LangChain:• 简单的LLM应用(问答、摘要)• 快速原型开发• 已有LangChain生态选OpenClaw:• 复杂Agent系统• 多Agent协作• 需要操作系统级别能力

5.2vs AutoGPT

维度
OpenClaw
AutoGPT
自主性
可控
高度自主
易用性
友好
较难
稳定性
一般
扩展性
生产就绪

选择建议:

选AutoGPT:• 实验、研究• 完全自主探索选OpenClaw:• 生产环境• 可控、可预测• 需要稳定性

5.3vs CrewAI

维度
OpenClaw
CrewAI
专注点
全面
多Agent协作
架构
操作系统
框架
记忆系统
完整
简单
工具生态
丰富
一般

选择建议:

选CrewAI:• 只需要多Agent协作• 快速上手选OpenClaw:• 需要完整能力• 长期演进

六、扩展机制

6.1自定义Runtime

pythonfrom openclaw importBaseRuntimeclassMyCustomRuntime(BaseRuntime):"""自定义Runtime"""def__init__(self,config):super().__init__(config)# 自定义初始化asyncdefrun(self,input:str)->str:# 自定义运行逻辑passdefperceive(self,input:str)->dict:# 自定义感知passdefthink(self,context:dict)->dict:# 自定义思考passasyncdefact(self,action:dict)->str:# 自定义行动pass# 注册openclaw.register_runtime("my_runtime",MyCustomRuntime)

6.2自定义Memory

pythonfrom openclaw importBaseMemoryclassRedisMemory(BaseMemory):"""Redis记忆"""def__init__(self,redis_url:str):self.redis=redis.from_url(redis_url)defsave(self,key:str,value:any):self.redis.set(key,json.dumps(value))defload(self,key:str)->any:value=self.redis.get(key)returnjson.loads(value)ifvalueelseNonedefsearch(self,query:str)->list:# Redis搜索实现pass# 注册openclaw.register_memory("redis",RedisMemory)

6.3自定义Tool

pythonfrom openclaw importtool@tooldefmy_custom_tool(param1:str,param2:int=10)->dict:"""    自定义工具    Args:        param1: 参数1说明        param2: 参数2说明    Returns:        返回值说明    """# 实现逻辑return{"result":"success"}# 自动注册到ToolManager

七、性能考虑

7.1并发处理

pythonclassAgentPool:"""Agent池"""def__init__(self,max_agents:int=10):self.max_agents=max_agentsself.agents={}self.semaphore=asyncio.Semaphore(max_agents)asyncdefrun_agent(self,agent_id:str,input:str)->str:"""运行Agent(带并发控制)"""asyncwithself.semaphore:agent=self.get_or_create(agent_id)returnawaitagent.run(input)

7.2资源限制

pythonclassResourceLimiter:"""资源限制器"""def__init__(self):self.limits={"max_tokens_per_request":4000,"max_tools_per_agent":50,"max_memory_mb":512,"max_execution_time":300# 秒}defcheck(self,agent:Agent)->bool:"""检查资源限制"""ifagent.memory_usage>self.limits["max_memory_mb"]:raiseResourceExceededError("内存超限")ifagent.execution_time>self.limits["max_execution_time"]:raiseTimeoutError("执行超时")returnTrue

7.3优雅降级

pythonclassGracefulDegradation:"""优雅降级"""def__init__(self):self.fallback_handlers={}defregister_fallback(self,tool_name:str,fallback:callable):"""注册降级处理"""self.fallback_handlers[tool_name]=fallbackasyncdefexecute_with_fallback(self,tool_name:str,params:dict):"""带降级的执行"""try:# 尝试正常执行returnawaitself.tools[tool_name].execute(**params)exceptExceptionase:# 降级处理iftool_nameinself.fallback_handlers:returnawaitself.fallback_handlers[tool_name](params,e)raise# 示例defsearch_fallback(params,error):"""搜索失败的降级:返回缓存结果"""returncache.get(params["query"])degradation.register_fallback("web_search",search_fallback)

八、安全设计

8.1权限控制

pythonclassPermissionSystem:"""权限系统"""LEVELS={"guest":["read"],"user":["read","write","execute"],"admin":["read","write","execute","admin"]}defcheck_permission(self,user:User,action:str,resource:str)->bool:"""检查权限"""user_level=user.permission_levelallowed_actions=self.LEVELS.get(user_level,[])returnactioninallowed_actions

8.2沙箱隔离

pythonclassSandbox:"""沙箱隔离"""def__init__(self,agent:Agent):self.agent=agentself.allowed_files=[]self.allowed_networks=[]self.allowed_tools=[]defexecute_code(self,code:str)->any:"""在沙箱中执行代码"""# 限制文件访问# 限制网络访问# 限制资源使用withself.restrictions():returnexec(code,self.safe_globals)

8.3审计日志

pythonclassAuditLogger:"""审计日志"""deflog(self,event:str,details:dict):"""记录审计日志"""record={"timestamp":datetime.now(),"event":event,"user":details.get("user"),"agent":details.get("agent"),"action":details.get("action"),"result":details.get("result"),"ip":details.get("ip")}self.db.insert("audit_logs",record)# 记录关键操作audit.log("tool.called",{"user":"user_123","agent":"agent_456","action":"web_search","result":"success"})

九、与进阶篇的联系

9.1架构 vs Skill

Skill在架构中的位置:

应用层  └── Skill(用户定义的能力)       ↓运行时层  └── Skill System(技能系统)       ↓服务层  └── Tool Manager(工具管理器)

9.2架构 vs 工作流

工作流在架构中的位置:

工作流 = 多个Runtime调用的编排Workflow Engine  ├── Step 1 → Agent Runtime  ├── Step 2 → Agent Runtime  └── Step 3 → Agent Runtime

9.3架构 vs 多Agent

多Agent在架构中的位置:

多个Agent Runtime 并行/协作Agent Pool  ├── Agent Runtime 1  ├── Agent Runtime 2  └── Agent Runtime 3       ↓  Communication Bus(通信)

十、小结

架构四层模型

应用层: 用户界面和工具

运行时层: Agent执行环境

服务层: 核心能力(记忆、工具、LLM

基础设施层: 底层支撑

核心设计原则

  • ✅ 模块化:松耦合,高内聚
  • ✅ 可扩展:插件机制
  • ✅ 高可用:容错降级
  • ✅ 易用性:简单上手

关键组件

  • ✅ Agent Runtime:运行环境
  • ✅ Skill System:技能系统
  • ✅ Memory System:记忆系统
  • ✅ Tool Manager:工具管理
  • ✅ Communication Bus:通信总线

思考题

🤔 深度思考

  1. 为什么OpenClaw要设计成"操作系统"而不是"框架"? 有什么好处?
  1. 如果要支持百万级Agent同时运行,架构需要怎么改进?
  1. 插件化架构的代价是什么? 什么时候不该用插件化?

欢迎在评论区分享你的思考! 💬


下期预告

下一篇:《企业级部署:从开发到生产》

你将学到:

  • ✅ 生产环境架构设计
  • ✅ 容器化部署(Docker
  • ✅ Kubernetes编排
  • ✅ 高可用设计
  • ✅ 监控与告警
  • ✅ 日志与审计

准备好进入生产了吗? 🚀


系列导航

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-04-02 17:22:11 HTTP/1.1 GET : https://www.yeyulingfeng.com/a/495656.html
  2. 运行时间 : 0.191342s [ 吞吐率:5.23req/s ] 内存消耗:5,105.23kb 文件加载:145
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=1cfe455c72365160133adc4d9c796bfc
  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.001038s ] mysql:host=127.0.0.1;port=3306;dbname=wenku;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.001935s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.000825s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000655s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.001421s ]
  6. SELECT * FROM `set` [ RunTime:0.000684s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.001569s ]
  8. SELECT * FROM `article` WHERE `id` = 495656 LIMIT 1 [ RunTime:0.006883s ]
  9. UPDATE `article` SET `lasttime` = 1775121731 WHERE `id` = 495656 [ RunTime:0.055750s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 64 LIMIT 1 [ RunTime:0.000922s ]
  11. SELECT * FROM `article` WHERE `id` < 495656 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.001341s ]
  12. SELECT * FROM `article` WHERE `id` > 495656 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.003393s ]
  13. SELECT * FROM `article` WHERE `id` < 495656 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.002695s ]
  14. SELECT * FROM `article` WHERE `id` < 495656 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.002047s ]
  15. SELECT * FROM `article` WHERE `id` < 495656 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.002400s ]
0.193783s