当前位置:首页>python>第223讲:从工单到行动:VBA和Python双方案,自动化待办事项生成,让跟进永不遗漏

第223讲:从工单到行动:VBA和Python双方案,自动化待办事项生成,让跟进永不遗漏

  • 2026-04-20 06:23:00
第223讲:从工单到行动:VBA和Python双方案,自动化待办事项生成,让跟进永不遗漏

在客服、销售或项目管理中,我们常常会遇到这样的场景:从大量的工单、反馈或会议记录中,需要手动筛选出那些标记为“需回访”、“待处理”或“需跟进”的条目,然后逐一记录下来,再安排时间处理。这个过程不仅枯燥,而且极易出错和遗漏。

如何将这一过程自动化?想象一下,系统能自动从每日的工单中筛选出需要跟进的客户,并为你生成一个清晰的待办事项列表,或者直接在Outlook日历中创建好提醒任务。本文将深入探讨这一自动化流程,并提供Excel VBAPython两套完整的解决方案,帮你将信息转化为行动,让跟进工作有条不紊。


一、 业务逻辑:从“信息记录”到“行动触发”

实现自动化的前提,是梳理清楚从原始数据到待办事项的转化规则。

1. 数据源与触发条件

通常,待办事项产生于结构化的数据记录中。例如:

  • 工单系统:状态为“已解决-需回访”的工单。

  • CRM系统:客户标签中包含“高意向-需跟进”的客户。

  • 会议纪要:包含“Action:”或“待办:”关键词的行。

核心逻辑是当数据满足特定条件时,即触发一个待办事项的创建。这个条件可以是状态字段、特定关键词、时间条件(如创建超过3天未处理)的组合。

2. 待办事项的输出形式

  • 文本文件 (.txt):结构简单,通用性强,可被任何文本编辑器打开,也便于导入其他系统或作为日志存档。适合只需要清单列表的场景。

  • Outlook 任务/日历事件:与个人工作流深度集成,能设置提醒时间、优先级、分类,并同步到手机。适合需要强提醒和进度跟踪的个人任务管理。

  • 其他形式:如写入数据库待办表、发送到Teambition/钉钉等协作工具(通过API)。本文聚焦于前两种最通用、最易实现的形式。

3. 流程设计

一个健壮的自动化流程应包括:

  1. 数据获取:从数据库、Excel或API获取原始数据。

  2. 筛选与转换:根据规则筛选记录,并提取关键信息(客户名、电话、问题摘要、截止日期)构造成待办事项的描述。

  3. 输出生成:按指定格式写入文本文件,或通过COM接口调用Outlook创建任务。

  4. 调度执行:通过Windows任务计划或Python定时脚本,让流程定期自动运行。


二、 VBA实现:利用FSO与Outlook对象模型

如果你的工作流完全基于Office套件,数据在Excel中,且希望在本地快速自动化,VBA是最佳选择。它可以轻松操作文本文件和本机的Outlook。

任务一:将待办列表导出为文本文件 (.txt)

VBA通过Scripting.FileSystemObject(FSO) 对象来操作文件系统,实现文件的创建、写入。

核心思路

  1. 遍历Excel工作表中标记为“需回访”的行。

  2. 为每一行构建一个格式化的字符串(如“客户: {姓名}, 电话: {电话}, 事由: {问题}, 需跟进日期: {日期}”)。

  3. 使用FSO创建或打开一个文本文件,将这些字符串逐行写入。

Sub ExportToDoListToTxt()    Dim ws As Worksheet    Dim lastRow As Long, i As Long    Dim fso As Object, txtFile As Object    Dim filePath As String    Dim outputContent As String    Dim dueDate As Date    Set ws = ThisWorkbook.Sheets("需回访工单")    lastRow = ws.Cells(ws.Rows.Count, "A").End(xlUp).Row    ' 定义文件路径,以当前日期命名    filePath = "C:\ToDoLists\客户回访清单_" & Format(Date, "YYYYMMDD") & ".txt"    ' 创建FileSystemObject对象    Set fso = CreateObject("Scripting.FileSystemObject")    ' 创建文本文件(如果存在则覆盖)    Set txtFile = fso.CreateTextFile(filePath, True, True) ' True表示Unicode编码    ' 写入文件标题和生成时间    txtFile.WriteLine "========== 客户回访待办清单 =========="    txtFile.WriteLine "生成时间: " & Now    txtFile.WriteLine "=" & String(50, "=") & vbNewLine    ' 遍历数据行(假设A:工单ID, B:客户名, C:电话, D:问题摘要, E:回访标记, F:期望跟进日期)    For i = 2 To lastRow        If ws.Cells(i, "E").Value = "需回访" Then            ' 构建待办事项描述            outputContent = "【待办" & i - 1 & "】"            outputContent = outputContent & " 客户: " & ws.Cells(i, "B").Value            outputContent = outputContent & " | 电话: " & ws.Cells(i, "C").Value            outputContent = outputContent & " | 事由: " & Left(ws.Cells(i, "D").Value, 30) ' 截断前30字符            ' 处理日期            If IsDate(ws.Cells(i, "F").Value) Then                dueDate = CDate(ws.Cells(i, "F").Value)                outputContent = outputContent & " | 需跟进日期: " & Format(dueDate, "yyyy-mm-dd")            Else                outputContent = outputContent & " | 需跟进日期: [未指定]"            End If            ' 写入文件            txtFile.WriteLine outputContent        End If    Next i    ' 关闭文件    txtFile.Close    ' 清理对象    Set txtFile = Nothing    Set fso = Nothing    ' 提示完成    MsgBox "待办事项清单已成功导出至:" & vbNewLine & filePath, vbInformation, "导出完成"    ' 可选:用记事本打开文件    Shell "notepad.exe " & filePath, vbNormalFocusEnd Sub

任务二:在Outlook中创建待办任务

VBA可以通过Outlook.Application对象创建任务,并设置主题、内容、开始日期、截止日期、提醒等属性。

核心思路

  1. 创建Outlook应用对象。

  2. 对于每一条“需回访”记录,创建一个新的任务项(olTaskItem)。

  3. 填充任务的各项属性,并将工单关键信息写入任务正文。

  4. 保存并(可选)发送任务(给自己)。

Sub CreateOutlookTasksFromSheet()    Dim ws As Worksheet    Dim lastRow As Long, i As Long    Dim outApp As Object, outTask As Object    Dim taskSubject As String, taskBody As String    Dim dueDate As Date    ' 防止因Outlook未启动导致的错误    On Error Resume Next    Set outApp = GetObject(, "Outlook.Application")    If Err.Number <> 0 Then        Set outApp = CreateObject("Outlook.Application")    End If    On Error GoTo 0    Set ws = ThisWorkbook.Sheets("需回访工单")    lastRow = ws.Cells(ws.Rows.Count, "A").End(xlUp).Row    For i = 2 To lastRow        If ws.Cells(i, "E").Value = "需回访" Then            ' 创建新任务            Set outTask = outApp.CreateItem(3' 3 代表 olTaskItem            With outTask                ' 设置任务主题                taskSubject = "回访客户:" & ws.Cells(i, "B").Value & " - 工单:" & ws.Cells(i, "A").Value                .Subject = taskSubject                ' 设置任务正文(详细信息)                taskBody = "客户姓名:" & ws.Cells(i, "B").Value & vbCrLf                taskBody = taskBody & "联系电话:" & ws.Cells(i, "C").Value & vbCrLf                taskBody = taskBody & "工单问题:" & ws.Cells(i, "D").Value & vbCrLf & vbCrLf                taskBody = taskBody & "生成自:Excel工单系统" & vbCrLf                taskBody = taskBody & "生成时间:" & Now                .Body = taskBody                ' 设置开始日期和截止日期                .StartDate = Date ' 从今天开始                If IsDate(ws.Cells(i, "F").Value) Then                    dueDate = CDate(ws.Cells(i, "F").Value)                    .DueDate = dueDate                    ' 设置提醒时间为截止日当天早上9                    .ReminderSet = True                    .ReminderTime = DateSerial(Year(dueDate), Month(dueDate), Day(dueDate)) + TimeSerial(900)                Else                    ' 未指定日期,则设为3天后                    .DueDate = Date + 3                    .ReminderSet = True                    .ReminderTime = Date + 3 + TimeSerial(9, 0, 0)                End If                ' 设置优先级(可根据业务规则调整)                ' 0=低, 1=普通, 2=高                .Importance = 1                ' 保存任务(不显示窗口,后台创建)                .Save                ' .Display ' 如果希望显示窗口进行确认,则用.Display而不是.Save            End With            Set outTask = Nothing        End If    Next i    Set outApp = Nothing    MsgBox "已在Outlook中创建了待办任务。请打开Outlook任务面板查看。", vbInformation, "任务创建完成"End Sub

VBA方案的优势与局限

  • 优势:与Office环境无缝集成,开发快捷;适合在数据源头(Excel)直接处理。

  • 局限:绑定Windows和Office;处理大量任务时,频繁操作Outlook对象可能较慢;难以实现复杂的调度和错误重试机制。


三、 Python实现:灵活强大的跨平台自动化

如果你的数据源多样(数据库、API、多格式文件),或希望流程在服务器上无人值守运行,Python是更强大和灵活的选择。它可以轻松处理文件,并通过win32com(仅Windows)或生成iCalendar文件(跨平台)来与Outlook/日历交互。

任务一:使用Python写入文本文件

Python内置的文件操作功能简单而强大。

import pandas as pdimport osfrom datetime import datetimedef export_todo_to_txt(data_source, output_dir='./todo_lists'):    """    从数据源导出待办事项到文本文件。    参数:    data_source: 可以是DataFrame,或文件路径(CSV/Excel)。    output_dir: 输出目录。    """    # 1. 加载数据    if isinstance(data_source, pd.DataFrame):        df = data_source    elif isinstance(data_source, str):        if data_source.endswith('.csv'):            df = pd.read_csv(data_source, encoding='utf-8')        elif data_source.endswith(('.xlsx''.xls')):            df = pd.read_excel(data_source)        else:            raise ValueError("不支持的文件格式")    else:        raise ValueError("数据源类型错误")    # 2. 筛选需回访的记录    # 假设列名:'工单ID', '客户名', '电话', '问题摘要', '回访标记', '期望跟进日期'    df_todo = df[df['回访标记'] == '需回访'].copy()    if df_todo.empty:        print("没有找到需要回访的工单。")        return    # 3. 准备输出内容    today_str = datetime.now().strftime("%Y年%m月%d日")    output_lines = []    output_lines.append(f"================ 客户回访待办清单 ================")    output_lines.append(f"生成时间: {datetime.now().strftime('%Y-%m-%d %H:%M:%S')}")    output_lines.append(f"待办数量: {len(df_todo)} 项")    output_lines.append("=" * 50 + "\n")    for idx, row in df_todo.iterrows():        # 构建每行内容        todo_line = f"[待办{idx+1:03d}] "        todo_line += f"客户: {row['客户名']} | "        todo_line += f"电话: {row.get('电话''N/A')} | "        # 问题摘要可能很长,截断        issue_summary = str(row.get('问题摘要'''))[:30]        if len(str(row.get('问题摘要'''))) > 30:            issue_summary += "..."        todo_line += f"事由: {issue_summary} | "        # 处理日期        due_date = row.get('期望跟进日期')        if pd.notna(due_date):            try:                due_date_str = pd.to_datetime(due_date).strftime('%Y-%m-%d')                todo_line += f"需跟进日期: {due_date_str}"            except:                todo_line += f"需跟进日期: 格式错误"        else:            todo_line += f"需跟进日期: 未指定"        output_lines.append(todo_line)    # 4. 写入文件    os.makedirs(output_dir, exist_ok=True)    filename = f"客户回访清单_{datetime.now().strftime('%Y%m%d_%H%M%S')}.txt"    filepath = os.path.join(output_dir, filename)    with open(filepath, 'w', encoding='utf-8'as f:        f.write('\n'.join(output_lines))    print(f"待办清单已成功导出至: {filepath}")    return filepath# 使用示例# 假设有一个包含数据的DataFrame `df`# 或者从文件读取# file_path = "需回访工单.xlsx"# export_todo_to_txt(file_path, output_dir='./todo_output')

任务二:使用Python创建Outlook任务(Windows)

在Windows上,可以使用pywin32库(win32com.client)来操作Outlook,与VBA逻辑类似,但更灵活。

import win32com.clientimport pandas as pdfrom datetime import datetime, timedeltaimport pythoncomimport osdef create_outlook_tasks_from_data(data_source):    """    从数据创建Outlook待办任务(仅Windows,需安装pywin32)。    """    # 初始化COM(可能需要)    pythoncom.CoInitialize()    # 1. 连接或启动Outlook    try:        outlook = win32com.client.Dispatch("Outlook.Application")    except Exception as e:        print(f"无法启动Outlook: {e}")        return    # 2. 获取数据    if isinstance(data_source, pd.DataFrame):        df = data_source    elif isinstance(data_source, str):        df = pd.read_excel(data_source)  # 简化示例,假设是Excel    else:        raise ValueError("数据源类型错误")    # 筛选    df_todo = df[df['回访标记'] == '需回访']    if df_todo.empty:        print("无待办事项需要创建。")        return    created_count = 0    # 3. 遍历创建任务    for idx, row in df_todo.iterrows():        try:            # 创建新任务            task = outlook.CreateItem(3)  # 3: olTaskItem            # 设置任务属性            task.Subject = f"回访客户:{row['客户名']} - 工单:{row.get('工单ID', idx)}"            # 任务正文            body_lines = [                f"客户姓名:{row['客户名']}",                f"联系电话:{row.get('电话''N/A')}",                f"工单问题:{row.get('问题摘要''')[:200]}",  # 限制长度                "",                f"数据来源:{os.path.basename(data_source) ifisinstance(data_source, strelse'DataFrame'}",                f"创建时间:{datetime.now().strftime('%Y-%m-%d %H:%M:%S')}",                f"--- 此任务由自动化系统创建 ---"            ]            task.Body = "\n".join(body_lines)            # 设置日期            task.StartDate = datetime.now().date()            # 处理截止日期            due_date = row.get('期望跟进日期')            if pd.notna(due_date):                try:                    due_date_dt = pd.to_datetime(due_date)                    task.DueDate = due_date_dt.date()                    # 设置提醒为截止日当天上午9点                    task.ReminderSet = True                    task.ReminderTime = datetime.combine(due_date_dt.date(), datetime.min.time()) + timedelta(hours=9)                except:                    # 如果日期解析失败,设置为3天后                    task.DueDate = (datetime.now() + timedelta(days=3)).date()                    task.ReminderSet = True                    task.ReminderTime = datetime.now() + timedelta(days=3, hours=9)            else:                task.DueDate = (datetime.now() + timedelta(days=3)).date()                task.ReminderSet = True                task.ReminderTime = datetime.now() + timedelta(days=3, hours=9)            task.Importance = 1  # 普通优先级            task.Categories = "客户回访"  # 可设置类别,便于在Outlook中筛选            # 保存任务(后台静默保存)            task.Save()            created_count += 1            print(f"已创建任务: {task.Subject}")        except Exception as e:            print(f"创建任务失败(行{idx}): {e}")            continue    print(f"任务创建完成。共成功创建 {created_count} 个Outlook任务。")    # 清理    pythoncom.CoUninitialize()# 使用示例# 假设df是包含数据的DataFrame# create_outlook_tasks_from_data(df)

Python方案的高级扩展

  1. 跨平台日历事件:如果不限于Windows/Outlook,可以使用icalendar库生成标准的.ics日历文件,可导入到Google Calendar、Apple Calendar等几乎所有日历应用中。

  2. 邮件通知:除了创建本地任务,还可以通过smtplib将待办列表以邮件形式发送给自己或团队。

  3. 数据库集成:直接从MySQL、PostgreSQL等数据库查询需要跟进的记录。

  4. 错误处理与日志:添加更完善的异常捕获和日志记录,确保自动化流程的稳健性。

  5. 配置化:将筛选条件、输出格式、提醒时间等抽取到配置文件中,使脚本更通用。


四、 方案对比与演进路径

维度

Excel VBA 方案

Python 方案

运行环境

必须安装Office(Excel, Outlook),通常为Windows

只需Python环境,跨平台。操作Outlook需Windows+Outlook

开发速度

快,尤其适合Excel数据处理,代码在Excel内即可运行

中,需搭建Python环境,但代码更结构化,易于复用

处理能力

受限于Excel和Outlook性能,适合中小数据量

强大,可处理海量数据,轻松集成多种数据源

调度自动化

依赖Windows任务计划调用Excel宏,或Excel自身的OnTime

可通过系统任务计划(cron/计划任务)或Python调度库灵活调度

扩展性

弱,主要围绕Office生态

极强,可扩展至Web API、数据库、多种通知方式、数据分析等

维护成本

中,VBA代码与特定工作簿绑定,调试稍复杂

低,代码模块化,易于版本管理和团队协作

选型建议

  • 选择Excel VBA:如果你的数据已经是Excel格式,流程是个人或小团队使用,且希望快速实现、最小化部署,那么VBA是高效的解决方案。

  • 选择Python:如果你的数据源多样化(数据库、多文件、API),需要复杂的处理逻辑,希望在服务器上定期自动化运行,或者需要与更广泛的生态系统集成,那么Python是更优选择。


五、 从自动化到智能化:未来的可能性

基础的自动化生成已经能节省大量时间,但我们可以走得更远:

  1. 智能优先级排序:结合客户价值、问题紧急度、跟进时效,自动为待办任务划分优先级(高/中/低)。

  2. 最佳时间建议:分析你的日程安排(通过日历接口),自动为待办任务安排建议的执行时间段。

  3. 模板与话术推荐:根据待办事由(如“投诉回访”、“产品使用指导”),自动关联知识库,在任务备注中附带建议的沟通话术或参考文档链接。

  4. 闭环追踪:创建的待办任务可以关联原始工单ID。当任务完成(标记为已完成)后,可自动回写状态到原始系统,形成闭环。

技术的目的始终是为人服务。通过将重复的信息整理与提醒工作交给机器,我们可以将宝贵的精力专注于真正需要人类判断、创意和情感投入的沟通与解决问题之中。


知识检验:5道选择题

  1. 在VBA中,要创建一个新的文本文件并写入内容,通常需要使用哪个对象?

    A) Excel.Application

    B) Scripting.FileSystemObject

    C) ADODB.Stream

    D) MSXML2.XMLHTTP

  2. 在Python中,使用win32com.client操作Outlook创建任务时,outlook.CreateItem(3)中的参数3代表创建什么类型的项目?

    A) 邮件(olMailItem

    B) 约会(olAppointmentItem

    C) 任务(olTaskItem

    D) 联系人(olContactItem

  3. 在自动化生成待办事项的业务逻辑中,以下哪一步通常是最先需要进行的?

    A) 设置任务的提醒时间

    B) 从数据源中筛选出符合特定条件(如“需回访”)的记录

    C) 将待办列表通过电子邮件发送

    D) 格式化输出文本

  4. 与VBA方案相比,Python方案在实现“从工单生成待办事项”任务时,一个主要优势是什么?

    A) Python代码必须运行在安装了Office的Windows电脑上

    B) Python可以更容易地处理来自多种数据源(如数据库、CSV、API)的数据,并实现更复杂的调度和集成

    C) Python的运行速度永远比VBA快

    D) Python只能生成文本文件,无法与Outlook交互

  5. 在VBA中,为了在创建Outlook任务时避免每次弹窗确认,并且让任务自动保存到任务列表,应该使用任务对象的哪个方法?

    A) .Display

    B) .Send

    C) .Save

    D) .Close


答案

  1. B。Scripting.FileSystemObject(FSO) 是VBA中用于操作文件系统(创建、删除、读写文件和文件夹)的核心对象。CreateTextFile是它的一个常用方法。

  2. C。在Outlook对象模型中,CreateItem方法的参数指定了要创建的项目类型。常用的有:0(邮件olMailItem),1(约会olAppointmentItem),3(任务olTaskItem),4(联系人olContactItem)。

  3. B。任何数据处理的起点都是获取并筛选出我们需要的数据。只有先确定了“哪些工单需要生成待办”,后续的格式转换、输出等步骤才有意义。这是一个典型的ETL(抽取、转换、加载)或数据流水线的思路。

  4. B。Python拥有极其丰富的数据处理库(如pandas)和连接各种数据源的驱动/库,其脚本也能方便地在各种环境下通过任务调度器运行。虽然它也可以通过win32com与Outlook交互,但这不是它的主要优势。其核心优势在于生态的开放性和强大的集成能力。

  5. C。.Save方法将任务静默保存到Outlook的任务文件夹中。.Display方法会打开任务窗口,需要人工点击保存。.Send通常用于发送邮件,而非保存任务。.Close是关闭对象,不一定保存。

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-04-20 07:44:19 HTTP/2.0 GET : https://f.mffb.com.cn/a/484907.html
  2. 运行时间 : 0.270299s [ 吞吐率:3.70req/s ] 内存消耗:4,774.17kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=eacab58a73e77ea1cd3cefee1dc266a2
  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.000762s ] mysql:host=127.0.0.1;port=3306;dbname=f_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.001169s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.001127s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.003253s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.001282s ]
  6. SELECT * FROM `set` [ RunTime:0.001599s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.001463s ]
  8. SELECT * FROM `article` WHERE `id` = 484907 LIMIT 1 [ RunTime:0.009534s ]
  9. UPDATE `article` SET `lasttime` = 1776642259 WHERE `id` = 484907 [ RunTime:0.019393s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 66 LIMIT 1 [ RunTime:0.003554s ]
  11. SELECT * FROM `article` WHERE `id` < 484907 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.012759s ]
  12. SELECT * FROM `article` WHERE `id` > 484907 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.004940s ]
  13. SELECT * FROM `article` WHERE `id` < 484907 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.012903s ]
  14. SELECT * FROM `article` WHERE `id` < 484907 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.010361s ]
  15. SELECT * FROM `article` WHERE `id` < 484907 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.014953s ]
0.274123s