当前位置:首页>python>第141讲:智能文档分类与归档系统——Python的智能分析与Excel VBA实战详解

第141讲:智能文档分类与归档系统——Python的智能分析与Excel VBA实战详解

  • 2026-01-29 10:59:06
第141讲:智能文档分类与归档系统——Python的智能分析与Excel VBA实战详解

在信息爆炸的时代,如何让海量文档自动归类成为企业效率提升的关键。本文将深入探讨如何通过Python的智能文本分析Excel VBA的规则引擎分别构建文档分类系统,帮助您根据业务需求选择最适合的自动化方案

一、业务背景与智能文档管理的价值

在日常办公中,文档分类与归档是每个企业都面临的挑战。据统计,知识型员工平均每周需要花费3-5小时在文档查找和整理上,而不规范的文档管理导致企业每年损失高达10-15%的工作效率

传统文档管理的痛点

  • 分类标准不一不同人员对文档分类理解不同,导致"同文不同类"现象

  • 检索效率低下平均每次文档查找需要8-10分钟,且成功率不足60%

  • 版本管理混乱多人协作时版本冲突频繁,重要文档易被覆盖

  • 安全风险突出敏感文档分散存储,权限控制困难

智能文档分类系统通过人工智能技术将文档管理从"手动整理"升级为"智能自治",分类准确率可达95%以上文档检索时间减少80% 。

二、Python方案:智能文本分析与分类

Python凭借强大的自然语言处理库机器学习能力,为智能文档分类提供了全面而先进的解决方案

2.1 环境配置与基础分类

安装必要库

pip install pandas numpy scikit-learn nltk gensim

基础文档分类实现

import osimport pandas as pdimport numpy as npfrom sklearn.feature_extraction.text import TfidfVectorizerfrom sklearn.naive_bayes import MultinomialNBfrom sklearn.model_selection import train_test_splitimport nltkfrom nltk.corpus import stopwordsfrom nltk.stem import PorterStemmerclass DocumentClassifier:    """文档分类器基类"""    def __init__(self, data_path=None):        self.data_path = data_path        self.vectorizer = TfidfVectorizer(max_features=5000)        self.classifier = MultinomialNB()        self.setup_nltk()    def setup_nltk(self):        """设置NLTK环境"""        try:            nltk.data.find('tokenizers/punkt')        except LookupError:            nltk.download('punkt')        try:            nltk.data.find('corpora/stopwords')        except LookupError:            nltk.download('stopwords')    def load_documents(self, file_pattern="*.txt"):        """加载文档数据"""        import glob        documents = []        labels = []        for file_path in glob.glob(os.path.join(self.data_path, file_pattern)):            try:                with open(file_path, 'r', encoding='utf-8'as f:                    content = f.read()                    documents.append(content)                    # 从文件名或路径提取标签                    label = self.extract_label_from_path(file_path)                    labels.append(label)            except Exception as e:                print(f"读取文件失败 {file_path}{str(e)}")                continue        return documents, labels    def preprocess_text(self, texts):        """文本预处理"""        processed_texts = []        stemmer = PorterStemmer()        stop_words = set(stopwords.words('english'))        for text in texts:            # 转换为小写            text = text.lower()            # 移除非字母字符            text = re.sub(r'[^a-zA-Z\s]''', text)            # 分词并去除停用词            words = text.split()            words = [stemmer.stem(word) for word in words if word not in stop_words]            processed_texts.append(' '.join(words))        return processed_texts# 使用示例def basic_classification_demo():    """基础分类演示"""    classifier = DocumentClassifier('documents/')    # 加载和预处理文档    documents, labels = classifier.load_documents()    processed_docs = classifier.preprocess_text(documents)    # 划分训练测试集    X_train, X_test, y_train, y_test = train_test_split(        processed_docs, labels, test_size=0.2, random_state=42    )    # 特征提取    X_train_vec = classifier.vectorizer.fit_transform(X_train)    X_test_vec = classifier.vectorizer.transform(X_test)    # 训练分类器    classifier.classifier.fit(X_train_vec, y_train)    # 评估模型    accuracy = classifier.classifier.score(X_test_vec, y_test)    print(f"分类准确率: {accuracy:.2%}")    return classifierif __name__ == "__main__":    basic_classification_demo()

2.2 高级智能分类功能

基于机器学习的智能分类系统

class AdvancedDocumentClassifier(DocumentClassifier):    """高级文档分类器"""    def __init__(self, data_path=None):        super().__init__(data_path)        self.models = {}        self.setup_advanced_features()    def setup_advanced_features(self):        """设置高级特征"""        from sklearn.ensemble import RandomForestClassifier        from sklearn.svm import SVC        from sklearn.neural_network import MLPClassifier        self.models = {            'naive_bayes': MultinomialNB(),            'random_forest': RandomForestClassifier(n_estimators=100),            'svm': SVC(kernel='linear'),            'neural_network': MLPClassifier(hidden_layer_sizes=(10050))        }    def extract_advanced_features(self, texts):        """提取高级特征"""        features = []        for text in texts:            text_features = {}            # 文本长度特征            text_features['length'] = len(text)            text_features['word_count'] = len(text.split())            text_features['avg_word_length'] = np.mean([len(word) for word in text.split()])            # 词汇丰富度            unique_words = set(text.split())            text_features['vocab_richness'] = len(unique_words) / len(text.split()) if text.split() else 0            # 主题特征(简单版)            text_features['contains_digital'] = any(char.isdigit() for char in text)            text_features['contains_money'] = any(keyword in text for keyword in ['$''USD''money''price'])            features.append(list(text_features.values()))        return np.array(features)    def train_ensemble_model(self, texts, labels):        """训练集成模型"""        from sklearn.ensemble import VotingClassifier        # 文本特征        text_features = self.vectorizer.fit_transform(texts)        # 高级特征        advanced_features = self.extract_advanced_features(texts)        # 组合特征        from scipy.sparse import hstack        combined_features = hstack([text_features, advanced_features])        # 创建集成模型        ensemble_model = VotingClassifier(            estimators=[                ('nb'self.models['naive_bayes']),                ('rf'self.models['random_forest']),                ('svm'self.models['svm'])            ],            voting='soft'        )        # 训练模型        ensemble_model.fit(combined_features, labels)        return ensemble_model# 使用示例def advanced_classification_demo():    """高级分类演示"""    classifier = AdvancedDocumentClassifier('enterprise_documents/')    # 模拟企业文档数据    documents = [        "2024年第一季度财务报表显示收入增长15%",        "人力资源部招聘计划需要审批",        "技术部门产品开发进度报告",        "市场营销活动预算申请报告"    ]    labels = ['财务''人力资源''技术''市场']    # 训练模型    model = classifier.train_ensemble_model(documents, labels)    # 测试新文档    test_docs = ["需要审批新的招聘预算""技术团队开发完成情况"]    test_features = classifier.vectorizer.transform(test_docs)    test_advanced = classifier.extract_advanced_features(test_docs)    from scipy.sparse import hstack    test_combined = hstack([test_features, test_advanced])    predictions = model.predict(test_combined)    print(f"预测结果: {predictions}")    return classifier, model

2.3 企业级文档管理系统

完整的文档分类与归档平台

class EnterpriseDocumentSystem(AdvancedDocumentClassifier):    """企业级文档管理系统"""    def __init__(self, config):        super().__init__(config.get('data_path'))        self.config = config        self.setup_storage_system()        self.setup_workflow_engine()    def setup_storage_system(self):        """设置存储系统"""        self.storage_backend = self.config.get('storage''local')        self.archive_rules = self.config.get('archive_rules', {})    def setup_workflow_engine(self):        """设置工作流引擎"""        self.workflow_stages = {            'upload'self.process_upload,            'classify'self.process_classification,            'review'self.process_review,            'archive'self.process_archiving        }    def process_document_workflow(self, file_path):        """处理文档工作流"""        try:            # 1. 上传阶段            doc_info = self.workflow_stages['upload'](file_path)            # 2. 分类阶段            classification_result = self.workflow_stages['classify'](doc_info['content'])            # 3. 审核阶段            if classification_result['confidence'] < 0.8:                review_result = self.workflow_stages['review'](doc_info, classification_result)                classification_result = review_result            # 4. 归档阶段            archive_path = self.workflow_stages['archive'](doc_info, classification_result)            return {                'status''success',                'document_id': doc_info['id'],                'category': classification_result['category'],                'archive_path': archive_path            }        except Exception as e:            print(f"文档处理失败: {str(e)}")            return {'status''error''message'str(e)}    def intelligent_archiving(self, document_info, category):        """智能归档"""        import datetime        import shutil        # 根据分类规则确定存储路径        base_path = self.config.get('archive_root''./archive')        year = datetime.datetime.now().year        month = datetime.datetime.now().month        # 构建归档路径        archive_path = os.path.join(base_path, category, str(year), f"{month:02d}")        os.makedirs(archive_path, exist_ok=True)        # 生成唯一文件名        filename = f"{document_info['id']}_{os.path.basename(document_info['path'])}"        target_path = os.path.join(archive_path, filename)        # 移动文件        shutil.move(document_info['path'], target_path)        # 更新元数据        self.update_document_metadata(document_info['id'], {            'archive_path': target_path,            'archived_at': datetime.datetime.now(),            'category': category        })        return target_path# 使用示例def enterprise_system_demo():    """企业级系统演示"""    config = {        'data_path''企业文档库/',        'storage''local',        'archive_rules': {            '财务': {'retention_years'10'access_level''high'},            '人力资源': {'retention_years'7'access_level''medium'},            '技术': {'retention_years'5'access_level''medium'},            '市场': {'retention_years'3'access_level''low'}        },        'archive_root''/企业归档/'    }    doc_system = EnterpriseDocumentSystem(config)    # 处理新文档    result = doc_system.process_document_workflow('新文档.pdf')    print(f"文档处理结果: {result}")    return doc_system

三、Excel VBA方案:基于规则的分类系统

对于习惯Excel环境且需要快速实现文档分类的用户,VBA提供了基于规则的实用解决方案

3.1 基础VBA文档分类

VBA实现基于关键字的分类

Sub BasicDocumentClassification()    ' 基础文档分类    On Error GoTo ErrorHandler    Application.ScreenUpdating = False    Application.Calculation = xlCalculationManual    Dim ws As Worksheet    Dim rulesWs As Worksheet    Dim fileList As Range    Dim i As Long    Set ws = ThisWorkbook.Sheets("文档列表")    Set rulesWs = ThisWorkbook.Sheets("分类规则")    ' 获取文件列表    Dim lastRow As Long    lastRow = ws.Cells(ws.Rows.Count, "A").End(xlUp).Row    ' 应用分类规则    For i = 2 To lastRow        Dim fileName As String        Dim fileContent As String        Dim category As String        fileName = ws.Cells(i, 1).Value        fileContent = GetFileContent(ws.Cells(i, 2).Value)  ' 文件路径在B列        ' 基于规则分类        category = ClassifyByRules(fileName, fileContent, rulesWs)        ws.Cells(i, 3).Value = category  ' 分类结果在C列        ' 记录分类日志        ws.Cells(i, 4).Value = Now  ' 时间戳在D列    Next i    Application.ScreenUpdating = True    Application.Calculation = xlCalculationAutomatic    MsgBox "文档分类完成!共处理 " & (lastRow - 1& " 个文档", vbInformation    Exit SubErrorHandler:    Application.ScreenUpdating = True    Application.Calculation = xlCalculationAutomatic    MsgBox "分类过程出错: " & Err.Description, vbCriticalEnd SubFunction ClassifyByRules(fileName As String, fileContent As String, rulesWs As Worksheet) As String    ' 基于规则分类    Dim rulesRange As Range    Dim ruleRow As Long    Set rulesRange = rulesWs.Range("A2:B" & rulesWs.Cells(rulesWs.Rows.Count, "A").End(xlUp).Row)    For Each ruleRow In rulesRange.Rows        Dim keyword As String        Dim category As String        keyword = ruleRow.Cells(1, 1).Value        category = ruleRow.Cells(1, 2).Value        ' 检查文件名和内容中是否包含关键词        If InStr(1, fileName, keyword, vbTextCompare) > 0 Or _           InStr(1, fileContent, keyword, vbTextCompare) > 0 Then            ClassifyByRules = category            Exit Function        End If    Next ruleRow    ' 默认分类    ClassifyByRules = "未分类"End Function

3.2 高级VBA分类系统

增强的VBA文档管理系统

Class AdvancedDocumentManager    ' 高级文档管理器    Private classificationRules As Collection    Private fileSystem As Object    Public Sub Initialize()        Set classificationRules = New Collection        Set fileSystem = CreateObject("Scripting.FileSystemObject")        Call LoadClassificationRules    End Sub    Private Sub LoadClassificationRules()        ' 加载分类规则        Dim ws As Worksheet        Set ws = ThisWorkbook.Sheets("智能规则")        Dim lastRow As Long        lastRow = ws.Cells(ws.Rows.Count, "A").End(xlUp).Row        Dim i As Long        For i = 2 To lastRow            Dim rule As ClassificationRule            Set rule = New ClassificationRule            rule.Keyword = ws.Cells(i, 1).Value            rule.Category = ws.Cells(i, 2).Value            rule.Priority = ws.Cells(i, 3).Value            rule.Confidence = ws.Cells(i, 4).Value            classificationRules.Add rule        Next i    End Sub    Public Function SmartClassifyDocument(filePath As String) As ClassificationResult        ' 智能文档分类        Dim result As ClassificationResult        Set result = New ClassificationResult        Dim fileContent As String        fileContent = ReadFileContent(filePath)        Dim bestMatch As ClassificationRule        Dim highestScore As Double        highestScore = 0        Dim rule As ClassificationRule        For Each rule In classificationRules            Dim score As Double            score = CalculateMatchScore(rule, fileContent)            If score > highestScore Then                highestScore = score                Set bestMatch = rule            End If        Next rule        If highestScore > 0.3 Then  ' 置信度阈值            result.Category = bestMatch.Category            result.Confidence = highestScore            result.IsConfident = True        Else            result.Category = "需要人工审核"            result.Confidence = highestScore            result.IsConfident = False        End If        Set SmartClassifyDocument = result    End Function    Private Function CalculateMatchScore(rule As ClassificationRule, content As String) As Double        ' 计算匹配分数        Dim keywordCount As Integer        keywordCount = CountOccurrences(content, rule.Keyword)        Dim baseScore As Double        baseScore = keywordCount * 0.1 * rule.Priority        ' 应用置信度调整        CalculateMatchScore = baseScore * rule.Confidence    End FunctionEnd Class

四、方案对比与适用场景分析

4.1 技术特性全面对比

为了更清晰地展示两种方案的差异,以下从多个维度进行详细对比

对比维度

Python智能方案

Excel VBA方案

优势分析

分类智能度

⭐⭐⭐⭐(机器学习驱动)

⭐⭐(基于规则)

Python能理解语义内容

处理能力

⭐⭐⭐⭐(大数据优化)

⭐⭐(Excel限制)

Python适合海量文档处理

适应性

⭐⭐⭐⭐(自主学习)

⭐⭐(规则维护)

Python适应新文档类型

部署复杂度

⭐⭐(环境依赖)

⭐⭐⭐⭐(Excel内置)

VBA开箱即用

维护成本

⭐⭐⭐(模型更新)

⭐⭐(规则调整)

Python长期维护成本低

扩展性

⭐⭐⭐⭐(生态丰富)

⭐⭐(Office限制)

Python可集成高级功能

4.2 实际应用场景选择指南

选择Python方案当

  • 复杂文档内容:需要理解文档语义而非简单关键词匹配

  • 大规模文档处理:文档数量超过1000个格式多样

  • 自适应需求:文档类型经常变化,需要系统自主学习

  • 高质量要求:分类准确率要求90%以上的业务场景

  • 系统集成:需要与现有IT系统深度集成

选择Excel VBA当

  • 规则明确简单:文档分类规则清晰且固定

  • 中小规模数据:文档数量在几百个以内

  • 快速部署需求:需要快速上线分类系统

  • Excel环境稳定:用户熟悉ExcelIT限制严格

  • 预算有限无法投入大量资源开发智能系统

五、实战案例:企业知识库文档智能分类

5.1 业务背景与挑战

某大型企业知识库积累了大量文档,但缺乏有效分类管理:

  • 文档数量庞大10万+文档分散在各个系统中

  • 格式多样:包含PDF、Word、Excel、PPT等多种格式

  • 分类标准复杂:需要按部门、项目、类型、密级等多维度分类

  • 检索困难:员工平均每天花费1小时查找文档

5.2 基于Python的完整解决方案

企业知识库智能分类系统

class KnowledgeBaseClassifier(EnterpriseDocumentSystem):    """知识库智能分类系统"""    def __init__(self, kb_config):        super().__init__(kb_config)        self.knowledge_categories = kb_config.get('categories', [])        self.setup_knowledge_graph()    def setup_knowledge_graph(self):        """设置知识图谱"""        self.entity_extractor = EntityExtractor()        self.relation_miner = RelationMiner()        self.graph_builder = GraphBuilder()    def extract_document_entities(self, document_path):        """提取文档实体"""        content = self.read_document_content(document_path)        entities = self.entity_extractor.extract(content)        return {            'persons': entities.get('PERSON', []),            'organizations': entities.get('ORG', []),            'dates': entities.get('DATE', []),            'topics': entities.get('TOPIC', [])        }    def multi_dimension_classification(self, document_path):        """多维度分类"""        # 内容分类        content_category = self.content_based_classification(document_path)        # 实体分类        entity_categories = self.entity_based_classification(document_path)        # 元数据分类        metadata_category = self.metadata_based_classification(document_path)        # 综合分类结果        final_category = self.ensemble_classification([            content_category, entity_categories, metadata_category        ])        return final_category    def build_knowledge_graph(self, documents):        """构建知识图谱"""        knowledge_graph = {}        for doc_path in documents:            entities = self.extract_document_entities(doc_path)            doc_id = self.generate_document_id(doc_path)            knowledge_graph[doc_id] = {                'entities': entities,                'relations'self.relation_miner.find_relations(entities),                'categories'self.multi_dimension_classification(doc_path)            }        return self.graph_builder.build_graph(knowledge_graph)# 使用示例def knowledge_base_demo():    """知识库案例演示"""    kb_config = {        'data_path''企业知识库/',        'categories': ['技术''市场''销售''人力资源''财务''管理'],        'storage''cloud',        'archive_rules': {            '技术': {'retention''permanent''access''technical'},            '财务': {'retention''10_years''access''financial'}        }    }    kb_system = KnowledgeBaseClassifier(kb_config)    # 处理知识库文档    documents = ['技术文档.pdf''财务报告.docx''市场分析.pptx']    knowledge_graph = kb_system.build_knowledge_graph(documents)    print("知识库分类系统构建完成!")    return kb_system, knowledge_graphif __name__ == "__main__":    kb_system, graph = knowledge_base_demo()

测试题

  1. 在Python文档分类系统中,TF-IDF特征提取相比简单的词袋模型有什么优势?在什么情况下应该选择TF-IDF而不是词袋模型?

  2. VBA基于规则的分类系统在处理同义词和多义词时可能遇到什么问题?有哪些改进方法可以提升规则系统的表达能力?

  3. 当需要处理包含表格、图片等非文本内容的文档时,纯文本分类方法的局限性是什么?Python方案中可以集成哪些技术来提升这类文档的分类效果?

  4. 在企业级文档分类系统中,如何平衡分类准确率与系统性能的关系?请列举三种具体的优化策略。

  5. 如果要将一个基于VBA规则的分类系统迁移到Python智能分类系统,主要的迁移步骤和注意事项有哪些?


答案

  1. TF-IDF优势TF-IDF通过逆文档频率降低常见词的权重,突出文档特有词汇的重要性。当文档集合规模较大需要区分主题特征时,TF-IDF比词袋模型更有效。

  2. VBA规则系统局限性同义词问题可通过构建同义词词典解决;多义词问题需要结合上下文分析。改进方法包括:使用正则表达式增强模式匹配引入简单的上下文判断逻辑建立规则优先级体系

  3. 非文本内容处理:纯文本分类无法解析表格结构和图片内容。Python可集成OCR技术提取图片文字表格解析库提取结构化数据多模态模型分析图文关系

  4. 准确率与性能平衡采用分层分类策略(先粗分后细分)、实施增量学习减少全量训练开销、使用特征选择降低维度。三种优化策略:缓存机制异步处理分布式计算

  5. 系统迁移要点步骤:规则分析→数据准备→模型选择→渐进迁移→效果验证。注意事项保证业务连续性确保数据安全制定回滚方案培训用户适应新系统


希望这篇详细的智能文档分类与归档系统指南能帮助您在企业中构建高效的文档管理体系!

如果觉得本文有帮助,请点赞、收藏、转发支持一下!

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-02-08 19:40:06 HTTP/2.0 GET : https://f.mffb.com.cn/a/462003.html
  2. 运行时间 : 0.220176s [ 吞吐率:4.54req/s ] 内存消耗:4,923.79kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=a1d50ae878ca8197e66254b9a64e6806
  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.001163s ] mysql:host=127.0.0.1;port=3306;dbname=f_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.001634s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.003261s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.003412s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.001385s ]
  6. SELECT * FROM `set` [ RunTime:0.002920s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.001590s ]
  8. SELECT * FROM `article` WHERE `id` = 462003 LIMIT 1 [ RunTime:0.026824s ]
  9. UPDATE `article` SET `lasttime` = 1770550806 WHERE `id` = 462003 [ RunTime:0.004060s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 66 LIMIT 1 [ RunTime:0.002641s ]
  11. SELECT * FROM `article` WHERE `id` < 462003 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.007432s ]
  12. SELECT * FROM `article` WHERE `id` > 462003 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.008191s ]
  13. SELECT * FROM `article` WHERE `id` < 462003 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.002771s ]
  14. SELECT * FROM `article` WHERE `id` < 462003 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.004199s ]
  15. SELECT * FROM `article` WHERE `id` < 462003 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.016519s ]
0.224158s