乐于分享
好东西不私藏

调用大模型生成测试用例,格式有excel/xmind/mm/json

调用大模型生成测试用例,格式有excel/xmind/mm/json
    最近skills盛行,但是skills依赖claude,cursor这些工具,如果没有这些工具,想要自己生成测试用例,可以参考如下脚本,本次使用的是智谱AI大模型,如果有其他免费模型,可以自行替换,安装好必要库之后,需求放到requirements目录,可以是txt也可以是图片,控制台执行命令生成测试用例,requirements层级下方是需求文件,-f后面根据需求输出想要的格式,如果都需要,都输入即可:
python3 testcase_generator.py -i requirements/login01.png  -f excel xmind mm
# !/usr/bin/env python3# -*- coding: utf-8 -*-"""测试用例生成器 - 智谱AI版基于需求文档自动生成测试用例"""import osimport jsonimport requestsimport refrom pathlib import Pathfrom datetime import datetimefrom typing import DictListOptionalimport argparsefrom openai import OpenAI# ==================== 配置区域 ====================#去智谱AI上申请apikey,放到这里ZHIPU_API_KEY = ""  # 请替换为你的实际密钥# !/usr/bin/env python3# -*- coding: utf-8 -*-"""测试用例生成器 - 智谱AI版支持生成 XMind、Excel、.mm 格式测试用例支持多种OCR方案"""import jsonimport refrom pathlib import Pathfrom datetime import datetimefrom typing import DictListimport argparseimport requestsimport base64import timeclass TestCaseGenerator:    def __init__(self):        """初始化生成器"""        if not ZHIPU_API_KEY or ZHIPU_API_KEY == "你的智谱API密钥":            print("❌ 错误:请先在脚本中配置智谱API密钥")            print("   获取地址: https://open.bigmodel.cn/")            exit(1)        self.api_url = "https://open.bigmodel.cn/api/paas/v4/chat/completions"        self.api_key = ZHIPU_API_KEY           #模型可以自己去智谱找免费的模型        self.model = "glm-4-flash"        Path("test-docs").mkdir(exist_ok=True)    def ocr_with_zhipu(self, image_path: str) -> str:        """使用智谱AI多模态OCR"""        try:            with open(image_path, 'rb'as f:                image_data = base64.b64encode(f.read()).decode('utf-8')            ext = Path(image_path).suffix.lower()            mime_type = {                '.png''image/png',                '.jpg''image/jpeg',                '.jpeg''image/jpeg',                '.gif''image/gif',                '.webp''image/webp',                '.bmp''image/bmp'            }.get(ext, 'image/png')            headers = {                "Content-Type""application/json",                "Authorization"f"Bearer {self.api_key}"            }            data = {                "model"self.model,                "messages": [                    {                        "role""user",                        "content": [                            {                                "type""image_url",                                "image_url": {                                    "url"f"data:{mime_type};base64,{image_data}"                                }                            },                            {                                "type""text",                                "text""请提取这张图片中的所有文字内容。只输出提取的文字,保持原有格式和顺序,不要添加任何解释。"                            }                        ]                    }                ],                "max_tokens"2000            }            response = requests.post(self.api_url, headers=headers, json=data, timeout=60)            if response.status_code == 200:                result = response.json()                text = result['choices'][0]['message']['content']                return text.strip()            else:                print(f"  ⚠️ 智谱OCR失败:{response.status_code}")                return ""        except Exception as e:            print(f"  ⚠️ 智谱OCR异常:{e}")            return ""    def ocr_with_baidu(self, image_path: str) -> str:        """使用百度OCR免费API"""        try:            # 百度OCR免费API(不需要token,但有频率限制)            with open(image_path, 'rb'as f:                image_data = base64.b64encode(f.read()).decode('utf-8')            # 使用免费的OCR API            url = "https://aip.baidubce.com/rest/2.0/ocr/v1/general_basic"            # 注意:这个需要百度API密钥,这里用公开的测试接口            # 实际使用建议注册百度云免费账号            print(f"  ⚠️ 百度OCR需要配置API密钥,跳过")            return ""        except Exception as e:            return ""    def ocr_with_ocrspace(self, image_path: str) -> str:        """使用OCR.Space免费API(无需注册)"""        try:            with open(image_path, 'rb'as f:                response = requests.post(                    'https://api.ocr.space/parse/image',                    files={'file': f},                    data={                        'apikey''helloworld',  # 免费试用key                        'language''chs',  # 中文                        'isOverlayRequired'False                    },                    timeout=30                )                if response.status_code == 200:                    result = response.json()                    if result.get('IsErroredOnProcessing'):                        return ""                    parsed_results = result.get('ParsedResults', [])                    if parsed_results:                        text = parsed_results[0].get('ParsedText''')                        return text.strip()                return ""        except Exception as e:            print(f"  ⚠️ OCR.Space异常:{e}")            return ""    def extract_text_from_image(self, image_path: str) -> str:        """从图片中提取文字(多种OCR方案)"""        print(f"  🔍 OCR识别:{Path(image_path).name}")        # 方案1:OCR.Space(免费,无需注册)        print(f"  📡 尝试 OCR.Space...")        text = self.ocr_with_ocrspace(image_path)        if text:            print(f"  ✓ OCR.Space 识别成功,提取 {len(text)} 字符")            return text        # 方案2:智谱AI多模态        print(f"  📡 尝试 智谱AI多模态...")        text = self.ocr_with_zhipu(image_path)        if text:            print(f"  ✓ 智谱AI 识别成功,提取 {len(text)} 字符")            return text        print(f"  ❌ 所有OCR方案均失败")        return ""    def read_file(self, file_path: str) -> str:        """读取文件内容(支持文本和图片)"""        path = Path(file_path)        if not path.exists():            raise FileNotFoundError(f"找不到文件:{file_path}")        # 图片文件        image_extensions = ['.png''.jpg''.jpeg''.gif''.webp''.bmp']        if path.suffix.lower() in image_extensions:            return self.extract_text_from_image(str(path))        # 文本文件        text_extensions = ['.txt''.md''.markdown']        if path.suffix.lower() in text_extensions:            encodings = ['utf-8''gbk''gb2312''latin-1']            for encoding in encodings:                try:                    with open(path, 'r', encoding=encoding) as f:                        content = f.read()                        if content.strip():                            return content                except:                    continue        print(f"  ⚠️ 无法读取文件:{path.name}")        return ""    def read_directory(self, dir_path: str) -> str:        """读取目录下所有文件"""        target_dir = Path(dir_path)        if not target_dir.exists():            print(f"❌ 目录不存在:{dir_path}")            return ""        all_texts = []        # 支持的文件格式        extensions = ['*.txt''*.md''*.png''*.jpg''*.jpeg''*.gif''*.webp''*.bmp']        for ext in extensions:            for file_path in sorted(target_dir.glob(ext)):                if file_path.suffix.lower() in ['.png''.jpg''.jpeg''.gif''.webp''.bmp']:                    print(f"  🖼️  处理图片:{file_path.name}")                    content = self.read_file(str(file_path))                    if content:                        all_texts.append(f"=== {file_path.name} (图片) ===\n{content}\n")                else:                    print(f"  📄 读取:{file_path.name}")                    content = self.read_file(str(file_path))                    if content:                        all_texts.append(f"=== {file_path.name} ===\n{content}\n")        if not all_texts:            print(f"❌ 目录中没有找到可读取的文件")        return "\n".join(all_texts)    def generate(self, requirement: str) -> List[Dict]:        """调用智谱AI生成测试用例"""        if not requirement.strip():            print("  ❌ 需求内容为空")            return []        prompt = f"""请根据以下需求生成测试用例,只输出JSON数组。    需求:    {requirement[:8000]}    要求:    每个用例包含:id, title, module, priority, precondition, steps, expected, tags    steps和expected是字符串数组    优先级:P0/P1/P2/P3"""        headers = {            "Content-Type""application/json",            "Authorization"f"Bearer {self.api_key}"        }        data = {            "model"self.model,            "messages": [                {"role""system""content""你是测试工程师,只输出JSON数组。"},                {"role""user""content": prompt}            ],            "temperature"0.3,            "max_tokens"4000        }        try:            print("  🤖 调用智谱AI生成测试用例...")            response = requests.post(self.api_url, headers=headers, json=data, timeout=120)            if response.status_code == 429:                print("  ❌ API调用频率过高,请稍后再试")                print("  💡 提示:智谱AI免费模型有调用限制,建议等待1分钟")                return []            if response.status_code != 200:                print(f"  ❌ API错误:{response.status_code}")                return []            result = response.json()            content = result['choices'][0]['message']['content']            json_match = re.search(r'\[\s*\{.*\}\s*\]', content, re.DOTALL)            if json_match:                return json.loads(json_match.group())            print(f"  ❌ 解析失败")            return []        except Exception as e:            print(f"  ❌ 生成失败:{e}")            return []    def save_to_excel(self, test_cases: List[Dict], output_path: Path):        """保存为Excel格式"""        try:            from openpyxl import Workbook            from openpyxl.styles import Font, Alignment, PatternFill            wb = Workbook()            ws = wb.active            ws.title = "测试用例"            headers = ["用例ID""标题""模块""优先级""前置条件""测试步骤""预期结果""标签"]            ws.append(headers)            header_fill = PatternFill(start_color="366092", end_color="366092", fill_type="solid")            header_font = Font(color="FFFFFF", bold=True)            for col in range(1len(headers) + 1):                cell = ws.cell(row=1, column=col)                cell.fill = header_fill                cell.font = header_font                cell.alignment = Alignment(horizontal="center", vertical="center")            for tc in test_cases:                steps_text = "\n".join([f"{i}{s}" for i, s in enumerate(tc.get('steps', []), 1)])                expected_text = "\n".join([f"{i}{e}" for i, e in enumerate(tc.get('expected', []), 1)])                tags_text = ", ".join(tc.get('tags', []))                row = [                    tc.get('id'''),                    tc.get('title'''),                    tc.get('module'''),                    tc.get('priority'''),                    tc.get('precondition'''),                    steps_text,                    expected_text,                    tags_text                ]                ws.append(row)            column_widths = {'A'15'B'35'C'20'D'10'E'30'F'40'G'40'H'20}            for col, width in column_widths.items():                ws.column_dimensions[col].width = width            wb.save(output_path)            print(f"  ✅ Excel文件:{output_path}")        except ImportError:            print("  ⚠️ 未安装openpyxl,请运行:pip install openpyxl")    def save_to_xmind(self, test_cases: List[Dict], output_path: Path):        """保存为XMind格式"""        xmind_data = []        modules = {}        for tc in test_cases:            module = tc.get('module''未分类')            if module not in modules:                modules[module] = []            modules[module].append(tc)        for module, cases in modules.items():            module_node = {"id": module, "title": module, "children": []}            for tc in cases:                case_node = {                    "id": tc.get('id'),                    "title"f"{tc.get('priority''')}{tc.get('title''')}",                    "children": []                }                if tc.get('precondition'):                    case_node["children"].append({                        "id"f"{tc.get('id')}_pre",                        "title"f"前置条件: {tc.get('precondition')}",                        "children": []                    })                steps = tc.get('steps', [])                expected = tc.get('expected', [])                for i, step in enumerate(steps, 1):                    step_node = {"id"f"{tc.get('id')}_step_{i}""title"f"步骤{i}{step}""children": []}                    if i <= len(expected):                        step_node["children"].append({                            "id"f"{tc.get('id')}_exp_{i}",                            "title"f"预期{i}{expected[i - 1]}",                            "children": []                        })                    case_node["children"].append(step_node)                if tc.get('tags'):                    case_node["children"].append({                        "id"f"{tc.get('id')}_tags",                        "title"f"标签: {', '.join(tc.get('tags'))}",                        "children": []                    })                module_node["children"].append(case_node)            xmind_data.append(module_node)        with open(output_path, 'w', encoding='utf-8'as f:            json.dump(xmind_data, f, ensure_ascii=False, indent=2)        print(f"  ✅ XMind文件:{output_path}")    def save_to_mm(self, test_cases: List[Dict], output_path: Path, project_name: str = "测试用例"):        """保存为.mm格式"""        xml_lines = ['<?xml version="1.0" encoding="UTF-8"?>''<map>']        xml_lines.append(f'  <node TEXT="{project_name}" STYLE="fork">')        for priority in ['P0''P1''P2''P3']:            priority_cases = [tc for tc in test_cases if tc.get('priority') == priority]            if priority_cases:                xml_lines.append(                    f'    <node TEXT="{priority}优先级 ({len(priority_cases)}个)" STYLE="bubble" POSITION="right">')                modules = {}                for tc in priority_cases:                    module = tc.get('module''未分类')                    if module not in modules:                        modules[module] = []                    modules[module].append(tc)                for module, cases in modules.items():                    xml_lines.append(f'      <node TEXT="{module}" STYLE="fork">')                    for tc in cases:                        xml_lines.append(f'        <node TEXT="{tc.get("id")}{tc.get("title")}" STYLE="fork">')                        if tc.get('precondition'):                            xml_lines.append(                                f'          <node TEXT="前置条件: {tc.get("precondition")}" STYLE="fork"/>')                        steps = tc.get('steps', [])                        expected = tc.get('expected', [])                        for i, step in enumerate(steps, 1):                            xml_lines.append(f'          <node TEXT="步骤{i}{step}" STYLE="fork">')                            if i <= len(expected):                                xml_lines.append(f'            <node TEXT="预期{i}{expected[i - 1]}" STYLE="fork"/>')                            xml_lines.append(f'          </node>')                        if tc.get('tags'):                            xml_lines.append(f'          <node TEXT="标签: {", ".join(tc.get("tags"))}" STYLE="fork"/>')                        xml_lines.append(f'        </node>')                    xml_lines.append(f'      </node>')                xml_lines.append(f'    </node>')        xml_lines.append('  </node>')        xml_lines.append('</map>')        with open(output_path, 'w', encoding='utf-8'as f:            f.write('\n'.join(xml_lines))        print(f"  ✅ .mm文件:{output_path}")    def save(self, test_cases: List[Dict], formats: List[str], project_name: str = "测试用例"):        """保存文件"""        timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")        for fmt in formats:            if fmt == "excel":                self.save_to_excel(test_cases, Path(f"test-docs/testcases_{timestamp}.xlsx"))            elif fmt == "xmind":                self.save_to_xmind(test_cases, Path(f"test-docs/testcases_{timestamp}.xmind"))            elif fmt == "mm":                self.save_to_mm(test_cases, Path(f"test-docs/testcases_{timestamp}.mm"), project_name)            elif fmt == "json":                output = Path(f"test-docs/testcases_{timestamp}.json")                with open(output, 'w', encoding='utf-8'as f:                    json.dump(test_cases, f, ensure_ascii=False, indent=2)                print(f"  ✅ JSON文件:{output}")    def print_stats(self, test_cases: List[Dict]):        """打印统计"""        if not test_cases:            return        priorities = [tc.get('priority''P2'for tc in test_cases]        print("\n" + "=" * 50)        print("📊 统计报告")        print("=" * 50)        print(f"总用例数:{len(test_cases)}")        print(f"P0:{priorities.count('P0')}个")        print(f"P1:{priorities.count('P1')}个")        print(f"P2:{priorities.count('P2')}个")        print(f"P3:{priorities.count('P3')}个")        print("=" * 50)    def run(self, input_path: str, is_dir: bool = False, formats: List[str] = None, project_name: str = "测试用例"):        """主流程"""        if formats is None:            formats = ["json"]        print("\n" + "=" * 50)        print("🧪 智谱AI测试用例生成器")        print("=" * 50)        print("\n📖 读取需求文档...")        if is_dir:            requirement = self.read_directory(input_path)        else:            requirement = self.read_file(input_path)        if not requirement:            print("❌ 未读取到有效的需求内容")            print("💡 提示:如果图片OCR失败,请尝试以下方案:")            print("   1. 将图片中的文字手动复制到txt文件中")            print("   2. 或稍等1分钟后重试(避免API频率限制)")            return        print(f"✅ 读取成功,长度:{len(requirement)}字符")        print("\n🤖 生成测试用例...")        test_cases = self.generate(requirement)        if not test_cases:            print("❌ 生成失败")            return        print(f"✅ 生成 {len(test_cases)} 个用例")        print("\n💾 保存文件...")        self.save(test_cases, formats, project_name)        self.print_stats(test_cases)        print("\n✨ 完成!")def main():    parser = argparse.ArgumentParser(description='智谱AI测试用例生成器')    parser.add_argument('-i''--input'help='输入文件路径')    parser.add_argument('-d''--dir'help='输入目录路径')    parser.add_argument('-f''--format', nargs='+',                        choices=['json''excel''xmind''mm'],                        default=['json'],                        help='输出格式')    parser.add_argument('-n''--name', default='测试用例'help='项目名称')    args = parser.parse_args()    if not args.input and not args.dir:        parser.error("请指定 -i 或 -d")    generator = TestCaseGenerator()    if args.dir:        generator.run(args.dir, is_dir=True, formats=args.format, project_name=args.name)    else:        generator.run(args.input, is_dir=False, formats=args.format, project_name=args.name)if __name__ == "__main__":    main()
基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-04-23 20:26:35 HTTP/1.1 GET : https://www.yeyulingfeng.com/a/557406.html
  2. 运行时间 : 0.089307s [ 吞吐率:11.20req/s ] 内存消耗:4,675.32kb 文件加载:145
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=1a0417e5c7a2b20770cdd0dbafd1785d
  1. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/public/index.php ( 0.79 KB )
  2. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/autoload.php ( 0.17 KB )
  3. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/composer/autoload_real.php ( 2.49 KB )
  4. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/composer/platform_check.php ( 0.90 KB )
  5. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/composer/ClassLoader.php ( 14.03 KB )
  6. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/composer/autoload_static.php ( 6.05 KB )
  7. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-helper/src/helper.php ( 8.34 KB )
  8. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-validate/src/helper.php ( 2.19 KB )
  9. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/ralouphie/getallheaders/src/getallheaders.php ( 1.60 KB )
  10. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/helper.php ( 1.47 KB )
  11. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/stubs/load_stubs.php ( 0.16 KB )
  12. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Exception.php ( 1.69 KB )
  13. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-container/src/Facade.php ( 2.71 KB )
  14. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/symfony/deprecation-contracts/function.php ( 0.99 KB )
  15. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/symfony/polyfill-mbstring/bootstrap.php ( 8.26 KB )
  16. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/symfony/polyfill-mbstring/bootstrap80.php ( 9.78 KB )
  17. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/symfony/var-dumper/Resources/functions/dump.php ( 1.49 KB )
  18. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-dumper/src/helper.php ( 0.18 KB )
  19. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/symfony/var-dumper/VarDumper.php ( 4.30 KB )
  20. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/guzzlehttp/guzzle/src/functions_include.php ( 0.16 KB )
  21. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/guzzlehttp/guzzle/src/functions.php ( 5.54 KB )
  22. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/App.php ( 15.30 KB )
  23. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-container/src/Container.php ( 15.76 KB )
  24. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/psr/container/src/ContainerInterface.php ( 1.02 KB )
  25. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/provider.php ( 0.19 KB )
  26. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Http.php ( 6.04 KB )
  27. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-helper/src/helper/Str.php ( 7.29 KB )
  28. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Env.php ( 4.68 KB )
  29. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/common.php ( 0.03 KB )
  30. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/helper.php ( 18.78 KB )
  31. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Config.php ( 5.54 KB )
  32. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/alipay.php ( 3.59 KB )
  33. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/facade/Env.php ( 1.67 KB )
  34. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/app.php ( 0.95 KB )
  35. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/cache.php ( 0.78 KB )
  36. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/console.php ( 0.23 KB )
  37. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/cookie.php ( 0.56 KB )
  38. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/database.php ( 2.48 KB )
  39. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/filesystem.php ( 0.61 KB )
  40. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/lang.php ( 0.91 KB )
  41. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/log.php ( 1.35 KB )
  42. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/middleware.php ( 0.19 KB )
  43. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/route.php ( 1.89 KB )
  44. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/session.php ( 0.57 KB )
  45. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/trace.php ( 0.34 KB )
  46. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/view.php ( 0.82 KB )
  47. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/event.php ( 0.25 KB )
  48. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Event.php ( 7.67 KB )
  49. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/service.php ( 0.13 KB )
  50. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/AppService.php ( 0.26 KB )
  51. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Service.php ( 1.64 KB )
  52. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Lang.php ( 7.35 KB )
  53. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/lang/zh-cn.php ( 13.70 KB )
  54. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/initializer/Error.php ( 3.31 KB )
  55. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/initializer/RegisterService.php ( 1.33 KB )
  56. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/services.php ( 0.14 KB )
  57. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/service/PaginatorService.php ( 1.52 KB )
  58. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/service/ValidateService.php ( 0.99 KB )
  59. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/service/ModelService.php ( 2.04 KB )
  60. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-trace/src/Service.php ( 0.77 KB )
  61. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Middleware.php ( 6.72 KB )
  62. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/initializer/BootService.php ( 0.77 KB )
  63. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/Paginator.php ( 11.86 KB )
  64. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-validate/src/Validate.php ( 63.20 KB )
  65. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/Model.php ( 23.55 KB )
  66. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/Attribute.php ( 21.05 KB )
  67. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/AutoWriteData.php ( 4.21 KB )
  68. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/Conversion.php ( 6.44 KB )
  69. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/DbConnect.php ( 5.16 KB )
  70. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/ModelEvent.php ( 2.33 KB )
  71. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/RelationShip.php ( 28.29 KB )
  72. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-helper/src/contract/Arrayable.php ( 0.09 KB )
  73. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-helper/src/contract/Jsonable.php ( 0.13 KB )
  74. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/contract/Modelable.php ( 0.09 KB )
  75. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Db.php ( 2.88 KB )
  76. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/DbManager.php ( 8.52 KB )
  77. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Log.php ( 6.28 KB )
  78. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Manager.php ( 3.92 KB )
  79. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/psr/log/src/LoggerTrait.php ( 2.69 KB )
  80. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/psr/log/src/LoggerInterface.php ( 2.71 KB )
  81. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Cache.php ( 4.92 KB )
  82. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/psr/simple-cache/src/CacheInterface.php ( 4.71 KB )
  83. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-helper/src/helper/Arr.php ( 16.63 KB )
  84. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/cache/driver/File.php ( 7.84 KB )
  85. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/cache/Driver.php ( 9.03 KB )
  86. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/contract/CacheHandlerInterface.php ( 1.99 KB )
  87. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/Request.php ( 0.09 KB )
  88. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Request.php ( 55.78 KB )
  89. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/middleware.php ( 0.25 KB )
  90. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Pipeline.php ( 2.61 KB )
  91. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-trace/src/TraceDebug.php ( 3.40 KB )
  92. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/middleware/SessionInit.php ( 1.94 KB )
  93. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Session.php ( 1.80 KB )
  94. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/session/driver/File.php ( 6.27 KB )
  95. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/contract/SessionHandlerInterface.php ( 0.87 KB )
  96. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/session/Store.php ( 7.12 KB )
  97. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Route.php ( 23.73 KB )
  98. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/RuleName.php ( 5.75 KB )
  99. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/Domain.php ( 2.53 KB )
  100. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/RuleGroup.php ( 22.43 KB )
  101. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/Rule.php ( 26.95 KB )
  102. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/RuleItem.php ( 9.78 KB )
  103. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/route/app.php ( 3.94 KB )
  104. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/facade/Route.php ( 4.70 KB )
  105. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/dispatch/Controller.php ( 4.74 KB )
  106. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/Dispatch.php ( 10.44 KB )
  107. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/controller/Index.php ( 9.87 KB )
  108. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/BaseController.php ( 2.05 KB )
  109. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/facade/Db.php ( 0.93 KB )
  110. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/connector/Mysql.php ( 5.44 KB )
  111. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/PDOConnection.php ( 52.47 KB )
  112. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/Connection.php ( 8.39 KB )
  113. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/ConnectionInterface.php ( 4.57 KB )
  114. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/builder/Mysql.php ( 16.58 KB )
  115. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/Builder.php ( 24.06 KB )
  116. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/BaseBuilder.php ( 27.50 KB )
  117. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/Query.php ( 15.71 KB )
  118. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/BaseQuery.php ( 45.13 KB )
  119. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/TimeFieldQuery.php ( 7.43 KB )
  120. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/AggregateQuery.php ( 3.26 KB )
  121. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/ModelRelationQuery.php ( 20.07 KB )
  122. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/ParamsBind.php ( 3.66 KB )
  123. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/ResultOperation.php ( 7.01 KB )
  124. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/WhereQuery.php ( 19.37 KB )
  125. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/JoinAndViewQuery.php ( 7.11 KB )
  126. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/TableFieldInfo.php ( 2.63 KB )
  127. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/Transaction.php ( 2.77 KB )
  128. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/log/driver/File.php ( 5.96 KB )
  129. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/contract/LogHandlerInterface.php ( 0.86 KB )
  130. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/log/Channel.php ( 3.89 KB )
  131. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/event/LogRecord.php ( 1.02 KB )
  132. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-helper/src/Collection.php ( 16.47 KB )
  133. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/facade/View.php ( 1.70 KB )
  134. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/View.php ( 4.39 KB )
  135. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/controller/Es.php ( 3.30 KB )
  136. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Response.php ( 8.81 KB )
  137. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/response/View.php ( 3.29 KB )
  138. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Cookie.php ( 6.06 KB )
  139. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-view/src/Think.php ( 8.38 KB )
  140. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/contract/TemplateHandlerInterface.php ( 1.60 KB )
  141. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-template/src/Template.php ( 46.61 KB )
  142. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-template/src/template/driver/File.php ( 2.41 KB )
  143. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-template/src/template/contract/DriverInterface.php ( 0.86 KB )
  144. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/runtime/temp/c935550e3e8a3a4c27dd94e439343fdf.php ( 31.80 KB )
  145. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-trace/src/Html.php ( 4.42 KB )
  1. CONNECT:[ UseTime:0.000471s ] mysql:host=127.0.0.1;port=3306;dbname=wenku;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.000846s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.000291s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000287s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.000768s ]
  6. SELECT * FROM `set` [ RunTime:0.000260s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.000819s ]
  8. SELECT * FROM `article` WHERE `id` = 557406 LIMIT 1 [ RunTime:0.000619s ]
  9. UPDATE `article` SET `lasttime` = 1776947195 WHERE `id` = 557406 [ RunTime:0.003042s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 64 LIMIT 1 [ RunTime:0.000284s ]
  11. SELECT * FROM `article` WHERE `id` < 557406 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.000530s ]
  12. SELECT * FROM `article` WHERE `id` > 557406 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.000450s ]
  13. SELECT * FROM `article` WHERE `id` < 557406 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.000930s ]
  14. SELECT * FROM `article` WHERE `id` < 557406 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.000955s ]
  15. SELECT * FROM `article` WHERE `id` < 557406 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.001991s ]
0.090959s