当前位置:首页>python>「太实用了!」Python调用百度OCR大模型API,3分钟批量搞定身份证、银行卡、驾驶证、行驶证等证件信息提取录入,打造证件智能识别系统~

「太实用了!」Python调用百度OCR大模型API,3分钟批量搞定身份证、银行卡、驾驶证、行驶证等证件信息提取录入,打造证件智能识别系统~

  • 2026-02-07 20:24:49
「太实用了!」Python调用百度OCR大模型API,3分钟批量搞定身份证、银行卡、驾驶证、行驶证等证件信息提取录入,打造证件智能识别系统~

“带你横跨办公自动化的数据江海”

@摸鱼

闻道有先后,术业有专攻。各位大佬们大家好!~我是你们的老朋友摸鱼~,本人在十多年的日常工作中摸爬滚打攒了不少Python办公自动化的实用项目技巧,自创立"码海听潮"公众号以来,已经陆续分享70多篇原创文章啦!里面满满的办公实操干货,希望能与各位大佬共同探讨办公效率提升之道,实现不加班自由。

好叻,多了不说,少了不唠,咱直接上干货。

办公需求场景

从崩溃到优雅的进化

有一个神秘的粉丝大佬私信摸鱼君想要弄一个批量证件识别系统,能识别身份证、银行卡、驾驶证、行驶证等图片证件信息,要求界面简单且美观,随后二话不说直接转了300马内过来,此番壮举让本人受宠若惊心里突突的,感谢粉丝大佬投喂定不负期待!话锋一转,要是这种类似的需求你的Big Boss安排你去完成,请问阁下该如何应对?

办公痛点分析

01

 痛点1:效率极低,费时费力

    • 手动输入证件信息耗时费力

    02

     痛点2:差错率高

      • 人工录入容易因视觉疲劳、格式不熟悉(如身份证号码18位需逐字核对)导致信息错漏

      由此可见若操作成百上千个证件图片的话整个操作流程繁琐且耗时,高频次的鼠标点击和键盘输入使操作者手指疲劳,堪称"键盘敲冒烟"式的体力劳动,加上人工疲劳操作极易导致遗漏文件夹。于是乎这时候,按以往的 “解题套路”,Python 的专属 BGM 该响起来了 ——go~ go~ go~,救苦救难的大救星这不就来了!!

      @摸鱼

      问题拆解思路

      1. 文件遍历

      递归扫描指定文件夹中的所有的图像文件

      2. 利用百度ocr大模型对图片证件进行信息批量提取

      下面,我就用python代码让excel见识一下,什么叫"传统文化遇上赛博效率"(仅展示部分代码,非完整代码,需完整代码看文章末尾说明~)

      import osimport sysimport jsonfrom datetime import datetimefrom pathlib import Pathfrom typing import DictListfrom PyQt6.QtWidgets import (    QApplication, QMainWindow, QWidget, QVBoxLayout, QHBoxLayout,    QLabel, QLineEdit, QPushButton, QComboBox, QTextEdit,    QGroupBox, QGridLayout, QFileDialog,    QMessageBox, QFrame, QProgressBar, QTableWidget,    QTableWidgetItem, QHeaderView, QSplitter)from PyQt6.QtCore import Qtfrom PyQt6.QtGui import QFont, QPalette, QColor, QTextCursor# 初始API配置DEFAULT_CONFIG = {    "api_key""",    "secret_key""",    "image_dir_path""",    "output_dir_path""",    "selected_ocr_type""idcard"}class StyledLineEdit(QLineEdit):    """自定义样式输入框"""    def __init__(self, placeholder="", parent=None):        super().__init__(parent)        self.setPlaceholderText(placeholder)        self.setMinimumHeight(35)        self.setStyleSheet("""            QLineEdit {                border: 1px solid #d1d5db;                border-radius: 5px;                padding: 8px;                background-color: white;                font-size: 14px;            }            QLineEdit:focus {                border: 2px solid #3b82f6;            }            QLineEdit:hover {                border: 1px solid #9ca3af;            }        """)class StyledButton(QPushButton):    """自定义样式按钮"""    def __init__(self, text="", primary=False, parent=None):        super().__init__(text, parent)        self.setMinimumHeight(40)        self.setMinimumWidth(100)        self.setCursor(Qt.CursorShape.PointingHandCursor)        if primary:            self.setStyleSheet("""                QPushButton {                    background-color: #3b82f6;                    color: white;                    border: none;                    border-radius: 5px;                    padding: 10px 20px;                    font-weight: bold;                    font-size: 14px;                }                QPushButton:hover {                    background-color: #2563eb;                }                QPushButton:pressed {                    background-color: #1d4ed8;                }                QPushButton:disabled {                    background-color: #9ca3af;                    color: #6b7280;                }            """)        else:            self.setStyleSheet("""                QPushButton {                    background-color: #f3f4f6;                    color: #374151;                    border: 1px solid #d1d5db;                    border-radius: 5px;                    padding: 10px 20px;                    font-weight: bold;                    font-size: 14px;                }                QPushButton:hover {                    background-color: #e5e7eb;                    border-color: #9ca3af;                }                QPushButton:pressed {                    background-color: #d1d5db;                }                QPushButton:disabled {                    background-color: #f3f4f6;                    color: #9ca3af;                    border-color: #e5e7eb;                }            """)class StyledTextEdit(QTextEdit):    """自定义样式文本编辑框"""    def __init__(self, parent=None):        super().__init__(parent)        self.setReadOnly(True)        self.setMinimumHeight(150)        self.setStyleSheet("""            QTextEdit {                border: 1px solid #d1d5db;                border-radius: 5px;                padding: 10px;                background-color: white;                font-family: 'Consolas', 'Monaco', monospace;                font-size: 13px;            }            QTextEdit:focus {                border: 2px solid #3b82f6;            }        """)class OCRMainWindow(QMainWindow):    """主窗口"""    def __init__(self):        super().__init__()        self.config_file = "ocr_config.json"        self.config = DEFAULT_CONFIG.copy()        self.all_results = {}        self.setup_ui()        self.load_config()        self.setup_styles()        self.show_initial_tips()    def setup_ui(self):        """设置界面"""        self.setWindowTitle("证件信息识别系统(欢迎关注微信公众号:码海听潮)")        self.setGeometry(100100900700)        self.setMinimumSize(800600)        # 中央部件        central_widget = QWidget()        self.setCentralWidget(central_widget)        # 主布局        main_layout = QVBoxLayout(central_widget)        main_layout.setContentsMargins(15151515)        main_layout.setSpacing(12)        # API配置区域        api_group = QGroupBox("百度OCR API配置")        api_group.setStyleSheet("""            QGroupBox {                font-weight: bold;                font-size: 14px;                border: 2px solid #e2e8f0;                border-radius: 8px;                margin-top: 12px;                padding-top: 10px;            }            QGroupBox::title {                subcontrol-origin: margin;                left: 10px;                padding: 0 5px 0 5px;            }        """)        api_layout = QGridLayout(api_group)        self.api_key_edit = StyledLineEdit("请输入API Key")        self.api_key_edit.setText(self.config["api_key"])        api_layout.addWidget(QLabel("API Key:"), 00)        api_layout.addWidget(self.api_key_edit, 01)        self.secret_key_edit = StyledLineEdit("请输入Secret Key")        self.secret_key_edit.setText(self.config["secret_key"])        api_layout.addWidget(QLabel("Secret Key:"), 10)        api_layout.addWidget(self.secret_key_edit, 11)        self.save_api_btn = StyledButton("保存API配置", primary=True)        self.save_api_btn.clicked.connect(self.save_api_config)        api_layout.addWidget(self.save_api_btn, 12)        main_layout.addWidget(api_group)        # 目录配置区域        dir_group = QGroupBox("目录配置")        dir_group.setStyleSheet(api_group.styleSheet())        dir_layout = QGridLayout(dir_group)        self.image_dir_edit = StyledLineEdit("请选择图片目录")        self.image_dir_edit.setText(self.config["image_dir_path"])        dir_layout.addWidget(QLabel("图片目录:"), 00)        dir_layout.addWidget(self.image_dir_edit, 01)        self.browse_image_btn = StyledButton("浏览")        self.browse_image_btn.clicked.connect(self.browse_image_dir)        dir_layout.addWidget(self.browse_image_btn, 02)        self.output_dir_edit = StyledLineEdit("请选择输出目录")        self.output_dir_edit.setText(self.config["output_dir_path"])        dir_layout.addWidget(QLabel("输出目录:"), 10)        dir_layout.addWidget(self.output_dir_edit, 11)        self.browse_output_btn = StyledButton("浏览")        self.browse_output_btn.clicked.connect(self.browse_output_dir)        dir_layout.addWidget(self.browse_output_btn, 12)        main_layout.addWidget(dir_group)        # 证件类型和操作区域        control_frame = QFrame()        control_layout = QHBoxLayout(control_frame)        type_group = QGroupBox("证件类型选择")        type_group.setStyleSheet(api_group.styleSheet())        type_layout = QHBoxLayout(type_group)        type_layout.addWidget(QLabel("识别类型:"))        self.type_combo = QComboBox()        self.type_combo.addItems(["身份证""银行卡""驾驶证""行驶证"])        self.type_combo.setCurrentText(self.get_ocr_type_name(self.config["selected_ocr_type"]))        self.type_combo.currentTextChanged.connect(self.update_ocr_type_config)        self.type_combo.setMinimumHeight(35)        self.type_combo.setStyleSheet("""            QComboBox {                border: 1px solid #d1d5db;                border-radius: 5px;                padding: 8px;                background-color: white;                min-width: 120px;            }            QComboBox:hover {                border-color: #9ca3af;            }            QComboBox::drop-down {                border: none;            }            QComboBox::down-arrow {                image: none;                border-left: 5px solid transparent;                border-right: 5px solid transparent;                border-top: 5px solid #4b5563;                margin-right: 10px;            }        """)        type_layout.addWidget(self.type_combo)        type_layout.addStretch()        control_layout.addWidget(type_group)        # 操作按钮        self.start_btn = StyledButton("开始识别", primary=True)        self.start_btn.clicked.connect(self.start_processing)        self.start_btn.setMinimumWidth(100)        self.save_btn = StyledButton("保存到Excel", primary=True)        self.save_btn.clicked.connect(self.save_to_excel)        self.save_btn.setEnabled(False)        self.save_btn.setMinimumWidth(100)        control_layout.addWidget(self.start_btn)        control_layout.addWidget(self.save_btn)        control_layout.addStretch()        main_layout.addWidget(control_frame)        # 进度条        self.progress_bar = QProgressBar()        self.progress_bar.setVisible(False)        self.progress_bar.setStyleSheet("""            QProgressBar {                border: 1px solid #d1d5db;                border-radius: 5px;                text-align: center;                background-color: white;                height: 25px;            }            QProgressBar::chunk {                background-color: #3b82f6;                border-radius: 5px;            }        """)        main_layout.addWidget(self.progress_bar)        # 创建分割器,包含日志和结果区域        splitter = QSplitter(Qt.Orientation.Vertical)        splitter.setStyleSheet("""            QSplitter::handle {                background-color: #e5e7eb;                height: 2px;            }        """)        # 日志区域        log_group = QGroupBox("操作日志")        log_group.setStyleSheet(api_group.styleSheet())        log_layout = QVBoxLayout(log_group)        self.log_text = StyledTextEdit()        log_layout.addWidget(self.log_text)        splitter.addWidget(log_group)        # 结果表格区域        result_group = QGroupBox("识别结果")        result_group.setStyleSheet(api_group.styleSheet())        result_layout = QVBoxLayout(result_group)        self.result_table = QTableWidget()        self.result_table.setStyleSheet("""            QTableWidget {                border: 1px solid #d1d5db;                border-radius: 5px;                background-color: white;                gridline-color: #e5e7eb;            }            QTableWidget::item {                padding: 8px;                border-bottom: 1px solid #f3f4f6;            }            QTableWidget::item:selected {                background-color: #dbeafe;            }            QHeaderView::section {                background-color: #f8fafc;                padding: 10px;                border: none;                border-right: 1px solid #e5e7eb;                border-bottom: 2px solid #e5e7eb;                font-weight: bold;                color: #374151;            }        """)        self.result_table.horizontalHeader().setSectionResizeMode(QHeaderView.ResizeMode.Stretch)        self.result_table.setAlternatingRowColors(True)        result_layout.addWidget(self.result_table)        splitter.addWidget(result_group)        # 设置分割器比例        splitter.setSizes([350350])        main_layout.addWidget(splitter, 1)    def setup_styles(self):        """设置全局样式"""        palette = self.palette()        palette.setColor(QPalette.ColorRole.Window, QColor(249250251))        palette.setColor(QPalette.ColorRole.WindowText, QColor(314155))        palette.setColor(QPalette.ColorRole.Base, QColor(255255255))        palette.setColor(QPalette.ColorRole.AlternateBase, QColor(248250252))        palette.setColor(QPalette.ColorRole.Text, QColor(314155))        palette.setColor(QPalette.ColorRole.Button, QColor(59130246))        palette.setColor(QPalette.ColorRole.ButtonText, QColor(255255255))        self.setPalette(palette)        # 设置字体        font = QFont("Microsoft YaHei"9)        self.setFont(font)    def load_config(self):        """加载配置文件"""        try:            if os.path.exists(self.config_file):                with open(self.config_file, 'r', encoding='utf-8'as f:                    saved_config = json.load(f)                    self.config.update(saved_config)                    self.api_key_edit.setText(self.config["api_key"])                    self.secret_key_edit.setText(self.config["secret_key"])                    self.image_dir_edit.setText(self.config["image_dir_path"])                    self.output_dir_edit.setText(self.config["output_dir_path"])                    self.type_combo.setCurrentText(                        self.get_ocr_type_name(self.config["selected_ocr_type"])                    )        except Exception as e:            QMessageBox.critical(self"配置错误"f"加载配置文件失败: {str(e)}")    def save_config(self):        """保存当前配置到文件"""        try:            with open(self.config_file, 'w', encoding='utf-8'as f:                json.dump(self.config, f, indent=2, ensure_ascii=False)        except Exception as e:            QMessageBox.critical(self"配置错误"f"保存配置文件失败: {str(e)}")    def get_ocr_type_name(self, ocr_type: str) -> str:        """获取证件类型显示名称"""        names = {            'idcard''身份证',            'bankcard''银行卡',            'driving_license''驾驶证',            'vehicle_license''行驶证'        }        return names.get(ocr_type, '身份证')    def get_ocr_type_code(self, name: str) -> str:        """获取证件类型代码"""        codes = {            '身份证''idcard',            '银行卡''bankcard',            '驾驶证''driving_license',            '行驶证''vehicle_license'        }        return codes.get(name, 'idcard')    def save_api_config(self):        """保存API配置"""        self.config["api_key"] = self.api_key_edit.text()        self.config["secret_key"] = self.secret_key_edit.text()        self.save_config()        self.log("API配置已保存")    def browse_image_dir(self):        """选择图片目录"""        path = QFileDialog.getExistingDirectory(            self"选择图片目录"            self.config["image_dir_path"or str(Path.home())        )        if path:            self.image_dir_edit.setText(path)            self.config["image_dir_path"] = path            self.save_config()            self.log(f"已选择图片目录: {path}")    def browse_output_dir(self):        """选择输出目录"""        path = QFileDialog.getExistingDirectory(            self"选择输出目录",            self.config["output_dir_path"or str(Path.home())        )        if path:            self.output_dir_edit.setText(path)            self.config["output_dir_path"] = path            self.save_config()            self.log(f"已选择输出目录: {path}")    def update_ocr_type_config(self, name: str):        """更新OCR类型配置"""        ocr_type = self.get_ocr_type_code(name)        if self.config["selected_ocr_type"] != ocr_type:            self.config["selected_ocr_type"] = ocr_type            self.save_config()            self.log(f"已选择证件类型: {name}")    def log(self, message: str):        """记录日志信息"""        self.log_text.append(f"[系统提示:] {message}")        self.log_text.moveCursor(QTextCursor.MoveOperation.End)    def show_initial_tips(self):        """显示初始操作提示"""        tips = [            "操作提示:",            "1. 请先设置百度OCR的API Key和Secret Key",            "2. 选择包含证件图片的目录",            "3. 选择结果输出目录",            "4. 选择要识别的证件类型(身份证/银行卡/驾驶证/行驶证)",            "5. 点击'开始识别'进行识别",            "6. 识别完成后可以点击'保存到Excel'保存结果",            "------------------------------------------",            "文件名提示:",            "  身份证: 包含'身份证'、'idcard'或'id'",            "  银行卡: 包含'银行卡'、'bankcard'或'bank'",            "  驾驶证: 包含'驾驶证'、'driving'或'driver'",            "  行驶证: 包含'行驶证'、'vehicle'或'car'",            "注意:请确保网络连接正常,首次使用需要获取Access Token"        ]        for tip in tips:            self.log(tip)    def start_processing(self):        """开始处理"""        if not self.config["api_key"or not self.config["secret_key"]:            QMessageBox.warning(self"警告""请先设置百度OCR的API Key和Secret Key!")            return        if not self.config["image_dir_path"]:            QMessageBox.warning(self"警告""请先选择图片目录!")            return        # 更新配置        self.config["image_dir_path"] = self.image_dir_edit.text()        self.config["output_dir_path"] = self.output_dir_edit.text()        self.save_config()        # 禁用按钮,显示进度条        self.start_btn.setEnabled(False)        self.save_btn.setEnabled(False)        self.progress_bar.setVisible(True)        self.progress_bar.setValue(0)        # 清空结果        self.all_results = {}        self.result_table.clear()        self.log("开始识别功能需要OCR工作线程支持")        # 模拟处理完成        self.on_processing_finished({})    def update_progress(self, current: int, total: int, filename: str):        """更新进度条"""        progress = int((current / total) * 100if total > 0 else 0        self.progress_bar.setValue(progress)        self.progress_bar.setFormat(f"{current}/{total} - {filename}")    def on_processing_finished(self, results: dict):        """处理完成"""        self.all_results = results        self.start_btn.setEnabled(True)        self.save_btn.setEnabled(bool(results))        self.progress_bar.setVisible(False)        if results:            self.display_results(results)            self.log(f"处理完成,共识别 {len(results)} 个文件")        else:            self.log("处理完成,但未识别到有效结果")    def on_processing_error(self, error_msg: str):        """处理错误"""        self.start_btn.setEnabled(True)        self.progress_bar.setVisible(False)        QMessageBox.critical(self"错误", error_msg)    def display_results(self, results: dict):        """显示识别结果到表格"""        if not results:            return        # 收集所有可能的字段        all_fields = set()        for result in results.values():            all_fields.update(result.keys())        all_fields = sorted(all_fields)        # 设置表格        self.result_table.setRowCount(len(results))        self.result_table.setColumnCount(len(all_fields) + 1)  # 加一列用于文件名        headers = ["文件名"] + list(all_fields)        self.result_table.setHorizontalHeaderLabels(headers)        # 填充数据        for row, (filename, result) in enumerate(results.items()):            # 文件名列            self.result_table.setItem(row, 0, QTableWidgetItem(filename))            # 其他字段            for col, field in enumerate(all_fields, 1):                value = result.get(field, "")                item = QTableWidgetItem(str(value))                self.result_table.setItem(row, col, item)        # 调整列宽        self.result_table.resizeColumnsToContents()    def save_to_excel(self):        """保存结果到Excel"""        if not self.all_results:            QMessageBox.warning(self"警告""没有可保存的结果!")            return        if not self.config["output_dir_path"]:            QMessageBox.warning(self"警告""请先选择输出目录!")            return        try:            self.log("保存到Excel功能需要openpyxl支持")            QMessageBox.information(self"提示""保存到Excel功能需要安装openpyxl库")        except Exception as e:            self.log(f"保存Excel失败: {str(e)}")            QMessageBox.critical(self"错误"f"保存Excel失败:\n{str(e)}")def main():    """主函数"""    app = QApplication(sys.argv)    app.setStyle("Fusion")    window = OCRMainWindow()    window.show()    sys.exit(app.exec())if __name__ == "__main__":    main()

      最终证件识别系统大功告成完美实现了既定的需求...

      通过上面Python自动化脚本,仅用几分钟的时间就完成原需手动操作数小时的工作任务。从最初准备手动人工机械操作的麻木到用python实现高效自动化的畅快,工作效率获得指数级提升,终于实现了不加班熬夜的自由!

      大佬们也可以举一反三,参照上面的代码思路根据自己工作中的实际情况来具体问题具体分析,实现自己定制化的需求。

      结语

      当Python遇见办公,牛马打工人终于笑出了猪叫声

      【职场人必看】每天早上一睁眼,想到又要面对:

      1.📊 堆积如山的Excel表格

      2.📑 机械重复的复制粘贴

      3.✍️ 永远改不完的各类文档

      4.诸如此类的更多........

      是不是连Ctrl+Alt+Delete的心都有了?

      别慌!别急,摸鱼这位“职场外挂”已经带着Python代码来拯救你了!

      友情提示:考虑到没有python环境的朋友需要打包好的成品exe,摸鱼早已贴心打包好,本篇文章代码打包的exe截图如下:

      另外,《码海听潮》公众号所有文章码和exe程序已打包好上传绿联nas私有云,有需要的大佬扫一扫上面博主的个人微信二维码,需要的大佬需支付9.9元永久拥有公众号资源(写原创干货费时费力,属实不易),邀请您进入社区群获取下载链接!!,群内提供python办公自动化交流问题,解决问题,且码海听潮微信公众号文章发布会第一时间会更新到群里,非诚勿扰哈!

      码海听潮官方社区群如下:

      赶紧微信扫一扫下方二维码添加摸鱼君微信

      最新文章

      随机文章

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