乐于分享
好东西不私藏

【一周精选】AI全自动编程神器!千问+LangGraph+PyQt5,一键生成运行修复,彻底告别手动改Bug

【一周精选】AI全自动编程神器!千问+LangGraph+PyQt5,一键生成运行修复,彻底告别手动改Bug

在当下AI飞速发展的时代,编程早已不是单纯敲代码的体力活,而是如何借助大模型与工作流框架,把重复繁琐的任务交给AI自动完成。相信很多Python学习者和开发者都有过这样的困扰:对着一个简单编程需求,要反复构思逻辑、编写代码、运行测试,一旦出现报错,还要逐行排查错误、修改调试,耗费大量时间和精力;新手常常被语法错误、缩进问题、逻辑漏洞折磨到崩溃,老手也会在重复的代码修复工作中感到低效乏味。

有没有一款工具,能让我们只输入一句自然语言需求,就能自动生成可运行代码,自动执行测试,报错后还能智能分析问题并自动修复,全程无需人工干预?今天就给大家带来一款界面精致高级、功能完整强大、超稳定防闪退的全自动编程工作流工具!它基于阿里千问百炼大模型提供代码能力,用LangGraph搭建智能工作流,搭配PyQt5打造高颜值GUI界面,实现从需求输入到代码产出的全流程自动化,还做了全面的异常捕获、线程安全处理、超时控制,彻底解决程序闪退、卡死问题,不管是学习编程、快速生成工具代码,还是辅助开发调试,都能大幅提升效率,让编程变得轻松又高效。

整个项目兼顾美观性与实用性,界面不透明质感拉满,布局清晰合理,操作简单易懂,同时核心逻辑严谨稳定,真正做到了“输入需求,坐等成品代码”,接下来就带大家深度拆解这款黑科技工具的实现细节!


一、核心依赖与大模型配置(千问百炼接入)

这部分是整个工具的AI大脑,负责对接阿里千问Coder专用大模型,实现代码生成与修复能力,同时做了超时控制与密钥校验,防止因API异常导致程序崩溃。

  1. 导入必要依赖:subprocess用于代码执行、langgraph搭建工作流、PyQt5实现GUI、traceback捕获异常堆栈。
  2. 配置千问大模型:选用代码专用模型qwen-coder-turbo,设置低温度保证代码稳定性,添加15秒超时避免API调用卡死。
  3. 安全处理:密钥已做脱敏处理,同时增加前置校验,未配置密钥时直接弹窗提示,拒绝盲目运行。
  4. 类型定义:使用TypedDict定义工作流状态,规范数据结构,让代码更易维护。

这一层是工具的核心动力来源,没有稳定的大模型接入,后续的自动生成与修复都无从谈起,同时安全与超时配置也保证了工具运行的稳定性。


二、LangGraph智能工作流设计(生成→测试→修复闭环)

LangGraph是这款工具的逻辑中枢,通过状态图搭建出一套可循环、可条件判断的自动化工作流,实现真正的AI自主迭代修复。

  1. 四大核心节点函数

    • generate_code:接收用户需求,调用大模型生成初始代码,全程异常捕获,出错不崩溃。
    • run_code_test:通过subprocess安全执行代码,设置10秒超时,禁用shell提升安全性,捕获执行错误并返回结果。
    • fix_code:根据执行报错信息,再次调用大模型自动修复代码,限制输入长度避免prompt溢出。
    • should_continue:条件路由函数,判断代码是否成功或达到最大迭代次数,决定继续修复还是结束流程。
  2. 工作流构建逻辑

    • 设置入口节点为代码生成,生成后自动进入测试环节。
    • 测试失败则进入修复节点,修复后再次测试,形成闭环。
    • 测试成功或超出最大修复次数,流程结束,保证不会无限循环。

这套流程完全模拟人类编程的思考与调试过程,让AI像程序员一样自主排错优化,是实现全自动编程的关键。


三、PyQt5高颜值GUI与线程安全设计

为了让工具更易用,项目采用PyQt5开发精致高级、不透明质感的图形界面,同时解决了GUI开发中最容易出现的闪退、卡死问题。

  1. 界面布局设计

    • 固定窗口尺寸,全局统一字体,按钮采用渐变蓝样式,悬停有交互效果。
    • 左右分栏展示日志与代码,清晰直观,输入框、提示标签布局合理,操作极简。
    • 增加API密钥状态提示、输入合法性校验,提升用户体验。
  2. 线程安全处理(防闪退核心)

    • 将工作流放入QThread独立线程,避免阻塞主界面。
    • 使用QMetaObject实现跨线程安全更新GUI,杜绝直接操作控件导致的崩溃。
    • 全局异常钩子sys.excepthook,捕获所有未处理异常,弹窗提示而非直接闪退。
  3. 实用功能扩展

    • 一键复制代码、清空日志、执行状态弹窗提示。
    • 执行过程实时打印日志,滚动条自动跟随,方便查看执行流程。

界面不仅好看,更兼顾稳定性与实用性,零基础用户也能轻松上手。


四、完整项目代码(密钥已脱敏)

import subprocessimport sysimport tracebackfrom typing import TypedDict, Literalfrom langgraph.graph import StateGraph, ENDfrom langchain_community.llms import Tongyi  # 千问百炼from PyQt5.QtWidgets import (QApplication, QMainWindow, QWidget, QVBoxLayout, QHBoxLayout,                             QTextEdit, QLineEdit, QPushButton, QLabel, QSplitter, QMessageBox)from PyQt5.QtCore import QThread, pyqtSignal, Qt, QMetaObject, Q_ARGfrom PyQt5.QtGui import QFont# -------------------------- 1. 千问百炼 配置(密钥已脱敏) --------------------------API_KEY = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"llm = Tongyi(    model="qwen-coder-turbo",    api_key=API_KEY,    temperature=0.1,    max_tokens=2048,    timeout=15,)# -------------------------- 2. 工作流状态 --------------------------classCodeWorkflowState(TypedDict):    requirement: str    code: str    test_result: str    iteration: int    max_iterations: int    status: Literal["success""failed""running"]# -------------------------- 3. 工作流节点函数 --------------------------defgenerate_code(state: CodeWorkflowState) -> dict:try:        requirement = state["requirement"]        prompt = f"""你是专业Python工程师,只输出可直接运行的纯代码,不要解释、不要注释、不要多余内容。需求:{requirement}代码:"""        code = llm.invoke(prompt).strip()return {"code": code,"iteration": state["iteration"] + 1,"status""running"        }except Exception as e:        error_msg = f"⚠️ 代码生成失败:{str(e)}\n错误堆栈:{traceback.format_exc()[:200]}"return {"code""","test_result": error_msg,"iteration": state["iteration"] + 1,"status""failed"        }defrun_code_test(state: CodeWorkflowState) -> dict:    code = state["code"]ifnot code:return {"test_result""⚠️ 无代码可执行,跳过测试""status""failed"}try:        result = subprocess.run(            [sys.executable, "-c", code],            capture_output=True,            text=True,            timeout=10,            shell=False        )if result.returncode == 0:            test_result = f"✅ 代码执行成功!\n输出:{result.stdout[:500]}"            status = "success"else:            test_result = f"❌ 代码执行失败!\n错误信息:{result.stderr[:500]}"            status = "failed"except Exception as e:        test_result = f"❌ 执行异常:{str(e)}\n错误堆栈:{traceback.format_exc()[:200]}"        status = "failed"return {"test_result": test_result, "status": status}deffix_code(state: CodeWorkflowState) -> dict:try:        code = state["code"]        error = state["test_result"]        requirement = state["requirement"]ifnot code ornot error:return {"code": code,"iteration": state["iteration"] + 1,"status""failed"            }        prompt = f"""修复Python代码,只输出修复后的纯代码,不要任何解释、注释和多余内容。原始需求:{requirement}错误代码:{code[:1000]}错误信息:{error[:500]}修复后代码:"""        fixed_code = llm.invoke(prompt).strip()return {"code": fixed_code,"iteration": state["iteration"] + 1,"status""running"        }except Exception as e:        error_msg = f"⚠️ 代码修复失败:{str(e)}\n错误堆栈:{traceback.format_exc()[:200]}"return {"code": state["code"],"test_result": error_msg,"iteration": state["iteration"] + 1,"status""failed"        }defshould_continue(state: CodeWorkflowState) -> Literal["fix", "end"]:if state["status"] == "success"or state["iteration"] >= state["max_iterations"]:return"end"return"fix"# -------------------------- 4. 构建LangGraph工作流 --------------------------workflow = StateGraph(CodeWorkflowState)workflow.add_node("generate_code", generate_code)workflow.add_node("run_code_test", run_code_test)workflow.add_node("fix_code", fix_code)workflow.set_entry_point("generate_code")workflow.add_edge("generate_code""run_code_test")workflow.add_conditional_edges("run_code_test",    should_continue,    {"fix""fix_code","end": END    })workflow.add_edge("fix_code""run_code_test")app_workflow = workflow.compile()# -------------------------- 5. GUI 核心逻辑 --------------------------classWorkflowThread(QThread):    log_signal = pyqtSignal(str)    code_signal = pyqtSignal(str)    finish_signal = pyqtSignal(str)def__init__(self, requirement, max_iterations):        super().__init__()        self.requirement = requirement        self.max_iterations = max_iterationsdefrun(self):try:            initial_state = {"requirement": self.requirement,"code""","test_result""","iteration"0,"max_iterations": self.max_iterations,"status""running"            }            self._safe_log("=" * 50)            self._safe_log("🚀 启动 代码生成-测试-修复 自动化工作流")            self._safe_log(f"需求:{self.requirement.strip()}")            self._safe_log("=" * 50 + "\n")for output in app_workflow.stream(initial_state):for key, value in output.items():                    self._safe_log(f"📌 当前节点:{key}")                    self._safe_log(f"迭代次数:{value['iteration']}")if value["code"]:                        self._safe_code(value["code"])                        self._safe_log(f"生成代码:\n{value['code'][:1000]}")                    self._safe_log(f"测试结果:{value['test_result']}")                    self._safe_log("-" * 30 + "\n")            final_state = value            end_info = f"🏁 工作流结束!最终状态:{final_state['status']}\n"            end_info += f"最终可用代码:\n{final_state['code'][:1000]}\n"            end_info += f"最终测试结果:{final_state['test_result']}"            self._safe_log(end_info)            self.finish_signal.emit(final_state["status"])except Exception as e:            error_msg = f"❌ 工作流线程异常:{str(e)}\n错误堆栈:{traceback.format_exc()[:300]}"            self._safe_log(error_msg)            self.finish_signal.emit("failed")def_safe_log(self, log_text):        QMetaObject.invokeMethod(self.log_edit, "append", Qt.QueuedConnection, Q_ARG(str, log_text))        QMetaObject.invokeMethod(            self.log_edit.verticalScrollBar(),"setValue",            Qt.QueuedConnection,            Q_ARG(int, self.log_edit.verticalScrollBar().maximum())        )def_safe_code(self, code_text):        QMetaObject.invokeMethod(self.code_edit, "setText", Qt.QueuedConnection, Q_ARG(str, code_text))classCodeWorkflowGUI(QMainWindow):def__init__(self):        super().__init__()        self.init_ui()        self.workflow_thread = None        WorkflowThread.log_edit = self.log_edit        WorkflowThread.code_edit = self.code_editdefinit_ui(self):        self.setWindowTitle("千问百炼 + LangGraph 自动化编程工作流")        self.setGeometry(1001001200800)        self.setFixedSize(1200800)        font = QFont("微软雅黑"10)        QApplication.setFont(font)        central_widget = QWidget()        self.setCentralWidget(central_widget)        main_layout = QVBoxLayout(central_widget)        main_layout.setSpacing(15)        main_layout.setContentsMargins(20202020)        api_label = QLabel(f"当前千问API Key:已配置")        api_label.setStyleSheet("color: green;")        main_layout.addWidget(api_label)        requirement_layout = QHBoxLayout()        requirement_label = QLabel("编程需求:")        requirement_label.setAlignment(Qt.AlignCenter)        self.requirement_input = QLineEdit()        self.requirement_input.setPlaceholderText("请输入Python编程需求(例:写一个计算两数加法并处理异常的函数)")        self.requirement_input.setStyleSheet("padding: 8px; border: 1px solid #ccc; border-radius: 4px;")        max_iter_label = QLabel("最大修复次数:")        max_iter_label.setAlignment(Qt.AlignCenter)        self.max_iter_input = QLineEdit("3")        self.max_iter_input.setFixedWidth(60)        self.max_iter_input.setAlignment(Qt.AlignCenter)        self.max_iter_input.setStyleSheet("padding: 8px; border: 1px solid #ccc; border-radius: 4px;")        requirement_layout.addWidget(requirement_label)        requirement_layout.addWidget(self.requirement_input, stretch=1)        requirement_layout.addWidget(max_iter_label)        requirement_layout.addWidget(self.max_iter_input)        main_layout.addLayout(requirement_layout)        btn_layout = QHBoxLayout()        self.start_btn = QPushButton("启动工作流")        self.copy_btn = QPushButton("复制当前代码")        self.clear_btn = QPushButton("清空日志")        btn_style = """            QPushButton {                padding: 10px 20px;                border: none;                border-radius: 4px;                background-color: #2f80ed;                color: white;                font-size: 10px;            }            QPushButton:hover {                background-color: #2970d5;            }            QPushButton:disabled {                background-color: #ccc;                cursor: not-allowed;            }        """        self.start_btn.setStyleSheet(btn_style)        self.copy_btn.setStyleSheet(btn_style)        self.clear_btn.setStyleSheet(btn_style)        self.start_btn.clicked.connect(self.start_workflow)        self.copy_btn.clicked.connect(self.copy_code)        self.clear_btn.clicked.connect(self.clear_log)        btn_layout.addWidget(self.start_btn)        btn_layout.addWidget(self.copy_btn)        btn_layout.addWidget(self.clear_btn)        main_layout.addLayout(btn_layout)        splitter = QSplitter(Qt.Horizontal)        self.log_edit = QTextEdit()        self.log_edit.setReadOnly(True)        self.log_edit.setStyleSheet("padding: 10px; border: 1px solid #ccc; border-radius: 4px;")        self.log_edit.setPlaceholderText("工作流日志将在此显示...")        self.code_edit = QTextEdit()        self.code_edit.setReadOnly(True)        self.code_edit.setStyleSheet("padding: 10px; border: 1px solid #ccc; border-radius: 4px;")        self.code_edit.setPlaceholderText("生成/修复后的代码将在此显示...")        splitter.addWidget(self.log_edit)        splitter.addWidget(self.code_edit)        splitter.setSizes([600600])        main_layout.addWidget(splitter, stretch=1)defstart_workflow(self):try:            requirement = self.requirement_input.text().strip()            max_iter = self.max_iter_input.text().strip()ifnot requirement:                QMessageBox.warning(self, "警告""请输入编程需求!")returnifnot max_iter.isdigit() or int(max_iter) < 1:                QMessageBox.warning(self, "警告""最大修复次数请输入正整数!")return            max_iter = int(max_iter)            self.start_btn.setDisabled(True)            self.clear_log()            self.code_edit.clear()            self.workflow_thread = WorkflowThread(requirement, max_iter)            self.workflow_thread.log_signal.connect(self.update_log)            self.workflow_thread.code_signal.connect(self.update_code)            self.workflow_thread.finish_signal.connect(self.workflow_finish)            self.workflow_thread.start()except Exception as e:            QMessageBox.critical(self, "启动异常"f"工作流启动失败:{str(e)}")            self.start_btn.setDisabled(False)defupdate_log(self, log_text):        self.log_edit.append(log_text)        self.log_edit.verticalScrollBar().setValue(self.log_edit.verticalScrollBar().maximum())defupdate_code(self, code_text):        self.code_edit.setText(code_text)defcopy_code(self):try:            code = self.code_edit.toPlainText().strip()ifnot code:                QMessageBox.warning(self, "警告""当前无代码可复制!")return            clipboard = QApplication.clipboard()            clipboard.setText(code)            QMessageBox.information(self, "提示""代码已复制到剪贴板!")except Exception as e:            QMessageBox.warning(self, "复制失败"f"代码复制异常:{str(e)}")defclear_log(self):        self.log_edit.clear()defworkflow_finish(self, status):        self.start_btn.setDisabled(False)if status == "success":            QMessageBox.information(self, "提示""工作流执行成功!代码已通过测试。")else:            QMessageBox.warning(self, "提示""工作流执行结束!已达到最大修复次数或出现异常。")# -------------------------- 6. 启动GUI程序 --------------------------if __name__ == "__main__":defexcepthook(exc_type, exc_value, exc_tb):        error_msg = f"⚠️ 全局未处理异常:{exc_value}\n"        error_msg += "错误堆栈:\n" + "".join(traceback.format_exception(exc_type, exc_value, exc_tb))[:500]        print(error_msg)        QMessageBox.critical(None"程序异常"f"程序出现错误,已避免闪退!\n错误信息:{exc_value}")    sys.excepthook = excepthooktry:        app = QApplication(sys.argv)        app.setStyle("Fusion")        gui = CodeWorkflowGUI()        gui.show()        sys.exit(app.exec_())except Exception as e:        QMessageBox.critical(None"启动失败"f"GUI启动失败:{str(e)}\n请检查PyQt5是否安装成功。")        sys.exit(1)

五、核心知识点总结

  1. 大模型接入:使用langchain对接通义千问,掌握模型参数调优(temperature、max_tokens、timeout)。
  2. 工作流框架LangGraph状态图、节点定义、条件路由、循环流程搭建。
  3. PyQt5 GUI:界面布局、样式美化、信号槽机制、多线程与跨线程安全更新。
  4. 代码安全执行subprocess.run执行代码、超时控制、shell禁用、错误捕获。
  5. 异常处理:函数级异常捕获、线程异常捕获、全局异常钩子,全方位防闪退。
  6. 类型注解TypedDictLiteral规范状态与返回值,提升代码健壮性。

六、拓展场景与测试步骤

拓展场景

  1. 编程教学工具:自动生成示例代码,辅助Python初学者学习。
  2. 快速脚本生成:一键生成数据处理、爬虫、自动化办公脚本。
  3. 代码调试助手:粘贴报错代码,自动分析并修复问题。
  4. 二次开发扩展:接入本地模型、增加代码保存、支持更多编程语言。

测试步骤

  1. 安装依赖:pip install langgraph langchain_community pyqt5 dashscope
  2. 替换千问API Key为真实密钥。
  3. 运行程序,输入编程需求(如:写一个计算器函数)。
  4. 设置最大修复次数,点击启动工作流。
  5. 查看左侧日志与右侧代码,测试生成代码是否可运行。
  6. 复制代码到本地验证执行结果。

📌 作者信息

作者:杨一凡 微信号:ysp2338084 公众号:Python学在坚持  

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-04-13 15:21:24 HTTP/1.1 GET : https://www.yeyulingfeng.com/a/519114.html
  2. 运行时间 : 0.203200s [ 吞吐率:4.92req/s ] 内存消耗:4,811.31kb 文件加载:145
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=38f7e4857b10496a3229e03e3fed904d
  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.000933s ] mysql:host=127.0.0.1;port=3306;dbname=wenku;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.001330s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.000571s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000632s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.001171s ]
  6. SELECT * FROM `set` [ RunTime:0.000496s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.001446s ]
  8. SELECT * FROM `article` WHERE `id` = 519114 LIMIT 1 [ RunTime:0.001010s ]
  9. UPDATE `article` SET `lasttime` = 1776064884 WHERE `id` = 519114 [ RunTime:0.001203s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 64 LIMIT 1 [ RunTime:0.000505s ]
  11. SELECT * FROM `article` WHERE `id` < 519114 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.000986s ]
  12. SELECT * FROM `article` WHERE `id` > 519114 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.002493s ]
  13. SELECT * FROM `article` WHERE `id` < 519114 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.011079s ]
  14. SELECT * FROM `article` WHERE `id` < 519114 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.007265s ]
  15. SELECT * FROM `article` WHERE `id` < 519114 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.008559s ]
0.204914s