当前位置:首页>python>OpenVINO:C/C++ & Python API 全解析

OpenVINO:C/C++ & Python API 全解析

  • 2026-08-18 23:11:29
OpenVINO:C/C++ & Python API 全解析

安装 OpenVINO Runtime

需要源码编译请参考:https://docs.openvino.org.cn/2025/get-started/install-openvino/install-openvino-vcpkg.html

下载地址:

https://storage.openvinotoolkit.org/repositories/openvino/packages/2025.4/windows/openvino_toolkit_windows_2025.4.0.20398.8fdad55727d_x86_64.zip

下载后解压到任意目录:

在解压路径下,执行配置环境脚本(临时生效):

.\setupvars.bat

(可选)或者使用以下方式手动配置变量(永久生效):

将路径 C:\myapp\Intel\openvino_2025.4.0\runtime\bin\intel64\Release (或者Debug)添加到环境变量 PATH

将第三方库 C:\myapp\Intel\openvino_2025.4.0\runtime\3rdparty\tbb\bin 添加到环境变量 PATH

配置python环境变量:

export INTEL_OPENVINO_DIR=C:\myapp\Intel\openvino_2025.4.0export OpenVINO_DIR=%INTEL_OPENVINO_DIR%\runtime\cmakeexport OPENVINO_LIB_PATHS=%INTEL_OPENVINO_DIR%\runtime\bin\intel64\Release;%INTEL_OPENVINO_DIR%\runtime\bin\intel64\Debug;%INTEL_OPENVINO_DIR%\runtime\3rdparty\tbb\bin;export TBB_DIR=%INTEL_OPENVINO_DIR%\runtime\3rdparty\tbb\lib\cmake\TBB;export PYTHONPATH=%INTEL_OPENVINO_DIR%\python;%INTEL_OPENVINO_DIR%\python\python3;

Runtime 路径:

官方示例代码路径:

安装 VS 2022 社区版

勾选“使用C++的桌面开发”:

C++ API 测试

创建 CMake 项目进行测试:

配置 CMakeLists.txt

# CMakeList.txt : CMake project for OpenvinoDemo1, include source and define# project specific logic here.#cmake_minimum_required (VERSION 3.8)# Enable Hot Reload for MSVC compilers if supported.if (POLICY CMP0141)  cmake_policy(SET CMP0141 NEW)  set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT "$<IF:$<AND:<CXX_COMPILER_ID:MSVC>>,$<$<CONFIG:Debug,RelWithDebInfo>:EditAndContinue>,$<$<CONFIG:Debug,RelWithDebInfo>:ProgramDatabase>>")endif()project ("OpenvinoDemo1")# 设置 OpenVINO 安装路径set(OpenVINO_DIR "C:/myapp/Intel/openvino_2025.4.0/runtime/cmake")# 查找 OpenVINO 包find_package(OpenVINO REQUIRED)# Add source to this project's executable.add_executable (OpenvinoDemo1 "OpenvinoDemo1.cpp" "OpenvinoDemo1.h")if (CMAKE_VERSION VERSION_GREATER 3.12)  set_property(TARGET OpenvinoDemo1 PROPERTY CXX_STANDARD 20)endif()# TODO: Add tests and install targets if needed.# 链接 OpenVINO 库target_link_libraries(OpenvinoDemo1 PRIVATE openvino::runtime)# 使用示例中的 slogtarget_include_directories(OpenvinoDemo1 PRIVATE    "{OpenVINO_DIR}/../../samples/cpp/common/utils/src/slog.cpp")

测试代码:

// Copyright (C) 2018-2025 Intel Corporation// SPDX-License-Identifier: Apache-2.0//#include<cstdlib>#include<iomanip>#include<memory>#include<set>#include<string>#include<tuple>#include<vector>// clang-format off#include"openvino/openvino.hpp"#include"samples/common.hpp"#include"samples/slog.hpp"// clang-format on/** * @brief Print OV Parameters * @param reference on OV Parameter * @return void */voidprint_any_value(const ov::Any& value){    if (value.empty()) {        slog::info << "EMPTY VALUE" << slog::endl;    }    else {        std::string stringValue = value.as<std::string>();        slog::info << (stringValue.empty() ? "\"\"" : stringValue) << slog::endl;    }}intmain(int argc, char* argv[]){    try {        // -------- Get OpenVINO runtime version --------        slog::info << ov::get_openvino_version() << slog::endl;        // -------- Parsing and validation of input arguments --------        if (argc != 1) {            std::cout << "Usage : " << argv[0] << std::endl;            return EXIT_FAILURE;        }        // -------- Step 1. Initialize OpenVINO Runtime Core --------        ov::Core core;        // -------- Step 2. Get list of available devices --------        std::vector<std::string> availableDevices = core.get_available_devices();        // -------- Step 3. Query and print supported metrics and config keys --------        slog::info << "Available devices: " << slog::endl;        for (auto&& device : availableDevices) {            slog::info << device << slog::endl;            // Query supported properties and print all of them            slog::info << "\tSUPPORTED_PROPERTIES: " << slog::endl;            auto supported_properties = core.get_property(device, ov::supported_properties);            for (auto&& property : supported_properties) {                if (property != ov::supported_properties.name()) {                    slog::info << "\t\t" << (property.is_mutable() ? "Mutable: " : "Immutable: ") << property << " : "                        << slog::flush;                    print_any_value(core.get_property(device, property));                }            }            slog::info << slog::endl;        }    }    catch (const std::exception& ex) {        std::cerr << std::endl << "Exception occurred: " << ex.what() << std::endl << std::flush;        return EXIT_FAILURE;    }    return EXIT_SUCCESS;}

运行效果:

Python API 测试

# 进入安装目录cd "C:\myapp\Intel\openvino_2025.4.0"# 创建python环境conda create -n ov_env python=3.10conda activate ov_env# 安装依赖pip install -r .\python\requirements.txt
# 设置环境变量setupvars.bat# 转到python示例目录cd "C:\myapp\Intel\openvino_2025.4.0\samples\python\hello_query_device"# 执行脚本python hello_query_device.py

基于 Python AI 生态的无限可能

OpenVINO 的 Python API 相当于给主流 Python AI 生态装上了一个“高性能适配器”。它让我们能用熟悉的 Python 语法,把 PyTorch/TensorFlow 训练好的模型,无缝优化并部署到 Intel 的全系硬件(CPU、集成显卡、独立显卡及 AI PC 上的 NPU)上,真正实现“一次编写,随处部署”。

基于 Python 生态,它主要打开了以下几个维度的可能性:

• 生成式 AI 与 LLM 落地:通过 openvino-genai 库,仅需几行 Python 代码就能跑起大语言模型(LLM)、视觉语言模型(VLM)和 Stable Diffusion 等生成式任务。它支持动态 LoRA 运行时切换,并深度集成 Hugging Face 生态,让本地 RAG、聊天机器人开发变得极为轻便。

  • 无缝的框架互通性:无需复杂转换,直接在 Python 环境中接收 PyTorch 或 TensorFlow 的实时对象进行推理。同时也完美支持 ONNX 格式,还能与 LangChain、LlamaIndex、vLLM 等热门 Python 框架深度集成,复用现有代码资产。
  • 边缘与视觉计算的极致效能:在计算机视觉(分类、检测、分割)场景下,能将推理延迟降低 30%-70%。配合 Python 特有的异步推理接口,可轻松实现工业质检、多路视频流分析等高吞吐、低功耗的边缘计算应用。
  • 跨硬件的统一调度:不管是老旧的赛扬处理器,还是最新的酷睿 Ultra(带 NPU),亦或是至强服务器,Python API 都能通过 AUTO 设备模式自动选择最优硬件,甚至支持 CPU+iGPU 异构协同,极大降低了多设备管理的开发负担。

Z-Image-Turbo + OpenVINO

1、安装依赖

安装 Diffusers,用于 Z-Image-Turbo 模型推理:

pip install git+https://github.com/huggingface/diffusers.git@a1f36ee3ef4ae1bf98bd260e539197259aa981c1# pip install git+https://gitcode.com/GitHub_Trending/di/diffusers.git@a1f36ee3ef4ae1bf98bd260e539197259aa981c1pip install git+https://github.com/openvino-dev-samples/optimum-intel.git@2f62e5aee74b4acba3836e1f26678c0db0a09c00

安装 modelscope,用于下载魔搭社区的模型:

pip install modelscope

安装 gradio,用于交互式演示:

pip install gradio==6.9.0

2、下载模型

从 ModelScope 下载已转换并量化好的 Z-Image-Turbo OpenVINO INT4 模型。如果模型已存在则跳过下载。

from pathlib import Pathmodel_dir = Path("Z-Image-Turbo-int4-ov")if not model_dir.exists():    from modelscope import snapshot_download    snapshot_download("snake7gun/Z-Image-Turbo-int4-ov", local_dir=str(model_dir))    print(f"模型已下载到: {model_dir}")else:    print(f"模型已存在: {model_dir},跳过下载")

3、加载模型

使用 Optimum Intel 的 OVZImagePipeline 加载 OpenVINO 模型。该接口与 Diffusers 的 Pipeline 实现兼容。

from optimum.intel import OVZImagePipelineov_pipe = OVZImagePipeline.from_pretrained(model_dir, device="CPU")print("✅ 模型加载完成")

4、运行文生图

import torchimport matplotlib.pyplot as plt # pip install matplotlibfrom PIL import Image # pip install Pillow# 中英文提示词均可prompt = "Young Chinese woman in red Hanfu, intricate embroidery. Impeccable makeup, red floral forehead pattern. Elaborate high bun, golden phoenix headdress, red flowers, beads. Holds round folding fan with lady, trees, bird. Neon lightning-bolt lamp, bright yellow glow, above extended left palm. Soft-lit outdoor night background, silhouetted tiered pagoda, blurred colorful distant lights."image = ov_pipe(    prompt=prompt,    height=512,    width=512,    num_inference_steps=9,    guidance_scale=0.0,    generator=torch.Generator("cpu").manual_seed(42),).images[0]# 显示图片plt.imshow(image)plt.axis('off')plt.show()# 保存图片image.save("generated_image.png")

运行效果:约 5 分钟出一张图

5、交互式演示

import randomimport refrom diffusers import AutoencoderKL, FlowMatchEulerDiscreteSchedulerimport gradio as grimport torchRES_CHOICES = {    "1024": [        "1024x1024 ( 1:1 )",        "1152x896 ( 9:7 )",        "896x1152 ( 7:9 )",        "1152x864 ( 4:3 )",        "864x1152 ( 3:4 )",        "1248x832 ( 3:2 )",        "832x1248 ( 2:3 )",        "1280x720 ( 16:9 )",        "720x1280 ( 9:16 )",        "1344x576 ( 21:9 )",        "576x1344 ( 9:21 )",    ],    "1280": [        "1280x1280 ( 1:1 )",        "1440x1120 ( 9:7 )",        "1120x1440 ( 7:9 )",        "1472x1104 ( 4:3 )",        "1104x1472 ( 3:4 )",        "1536x1024 ( 3:2 )",        "1024x1536 ( 2:3 )",        "1536x864 ( 16:9 )",        "864x1536 ( 9:16 )",        "1680x720 ( 21:9 )",        "720x1680 ( 9:21 )",    ],    "1536": [        "1536x1536 ( 1:1 )",        "1728x1344 ( 9:7 )",        "1344x1728 ( 7:9 )",        "1728x1296 ( 4:3 )",        "1296x1728 ( 3:4 )",        "1872x1248 ( 3:2 )",        "1248x1872 ( 2:3 )",        "2048x1152 ( 16:9 )",        "1152x2048 ( 9:16 )",        "2016x864 ( 21:9 )",        "864x2016 ( 9:21 )",    ],}RESOLUTION_SET = []for resolutions in RES_CHOICES.values():    RESOLUTION_SET.extend(resolutions)EXAMPLE_PROMPTS = [    ["一位男士和他的贵宾犬穿着配套的服装参加狗狗秀,室内灯光,背景中有观众。"],    [        "极具氛围感的暗调人像,一位优雅的中国美女在黑暗的房间里。一束强光通过遮光板,在她的脸上投射出一个清晰的闪电形状的光影,正好照亮一只眼睛。高对比度,明暗交界清晰,神秘感,莱卡相机色调。"    ],    [        "一张中景手机自拍照片拍摄了一位留着长黑发的年轻东亚女子在灯光明亮的电梯内对着镜子自拍。她穿着一件带有白色花朵图案的黑色露肩短上衣和深色牛仔裤。她的头微微倾斜,嘴唇嘟起做亲吻状,非常可爱俏皮。她右手拿着一部深灰色智能手机,遮住了部分脸,后置摄像头镜头对着镜子"    ],    [        "Young Chinese woman in red Hanfu, intricate embroidery. Impeccable makeup, red floral forehead pattern. Elaborate high bun, golden phoenix headdress, red flowers, beads. Holds round folding fan with lady, trees, bird. Neon lightning-bolt lamp (⚡️), bright yellow glow, above extended left palm. Soft-lit outdoor night background, silhouetted tiered pagoda (西安大雁塔), blurred colorful distant lights."    ],    [        '''A vertical digital illustration depicting a serene and majestic Chinese landscape, rendered in a style reminiscent of traditional Shanshui painting but with a modern, clean aesthetic. The scene is dominated by towering, steep cliffs in various shades of blue and teal, which frame a central valley. In the distance, layers of mountains fade into a light blue and white mist, creating a strong sense of atmospheric perspective and depth. A calm, turquoise river flows through the center of the composition, with a small, traditional Chinese boat, possibly a sampan, navigating its waters. The boat has a bright yellow canopy and a red hull, and it leaves a gentle wake behind it. It carries several indistinct figures of people. Sparse vegetation, including green trees and some bare-branched trees, clings to the rocky ledges and peaks. The overall lighting is soft and diffused, casting a tranquil glow over the entire scene. Centered in the image is overlaid text. At the top of the text block is a small, red, circular seal-like logo containing stylized characters. Below it, in a smaller, black, sans-serif font, are the words 'Zao-Xiang * East Beauty & West Fashion * Z-Image'. Directly beneath this, in a larger, elegant black serif font, is the word 'SHOW & SHARE CREATIVITY WITH THE WORLD'. Among them, there are "SHOW & SHARE", "CREATIVITY", and "WITH THE WORLD"'''    ],    [        """一张虚构的英语电影《回忆之味》(The Taste of Memory)的电影海报。场景设置在一个质朴的19世纪风格厨房里。画面中央,一位红棕色头发、留着小胡子的中年男子(演员阿瑟·彭哈利根饰)站在一张木桌后,他身穿白色衬衫、黑色马甲和米色围裙,正看着一位女士,手中拿着一大块生红肉,下方是一个木制切菜板。在他的右边,一位梳着高髻的黑发女子(演员埃莉诺·万斯饰)倚靠在桌子上,温柔地对他微笑。她穿着浅色衬衫和一条上白下蓝的长裙。桌上除了放有切碎的葱和卷心菜丝的切菜板外,还有一个白色陶瓷盘、新鲜香草,左侧一个木箱上放着一串深色葡萄。背景是一面粗糙的灰白色抹灰墙,墙上挂着一幅风景画。最右边的一个台面上放着一盏复古油灯。海报上有大量的文字信息。左上角是白色的无衬线字体"ARTISAN FILMS PRESENTS",其下方是"ELEANOR VANCE"和"ACADEMY AWARD® WINNER"。右上角写着"ARTHUR PENHALIGON"和"GOLDEN GLOBE® AWARD WINNER"。顶部中央是圣丹斯电影节的桂冠标志,下方写着"SUNDANCE FILM FESTIVAL GRAND JURY PRIZE 2024"。主标题"THE TASTE OF MEMORY"以白色的大号衬线字体醒目地显示在下半部分。标题下方注明了"A FILM BY Tongyi Interaction Lab"。底部区域用白色小字列出了完整的演职员名单,包括"SCREENPLAY BY ANNA REID"、"CULINARY DIRECTION BY JAMES CARTER"以及Artisan Films、Riverstone Pictures和Heritage Media等众多出品公司标志。整体风格是写实主义,采用温暖柔和的灯光方案,营造出一种亲密的氛围。色调以棕色、米色和柔和的绿色等大地色系为主。两位演员的身体都在腰部被截断。"""    ],    [        """一张方形构图的特写照片,主体是一片巨大的、鲜绿色的植物叶片,并叠加了文字,使其具有海报或杂志封面的外观。主要拍摄对象是一片厚实、有蜡质感的叶子,从左下角到右上角呈对角线弯曲穿过画面。其表面反光性很强,捕捉到一个明亮的直射光源,形成了一道突出的高光,亮面下显露出平行的精细叶脉。背景由其他深绿色的叶子组成,这些叶子轻微失焦,营造出浅景深效果,突出了前景的主叶片。整体风格是写实摄影,明亮的叶片与黑暗的阴影背景之间形成高对比度。图像上有多处渲染文字。左上角是白色的衬线字体文字"PIXEL-PEEPERS GUILD Presents"。右上角同样是白色衬线字体的文字"[Instant Noodle] 泡面调料包"。左侧垂直排列着标题"Render Distance: Max",为白色衬线字体。左下角是五个硕大的白色宋体汉字"显卡在...燃烧"。右下角是较小的白色衬线字体文字"Leica Glow™ Unobtanium X-1",其正上方是用白色宋体字书写的名字"蔡几"。识别出的核心实体包括品牌像素偷窥者协会、其产品线泡面调料包、相机型号买不到™ X-1以及摄影师名字造相。"""    ],]def generate_image(    pipe,    prompt,    resolution="1024x1024",    seed=42,    guidance_scale=5.0,    num_inference_steps=50,    shift=3.0,    max_sequence_length=512,    progress=gr.Progress(track_tqdm=True),):    width, height = get_resolution(resolution)    generator = torch.Generator("cpu").manual_seed(seed)    scheduler = FlowMatchEulerDiscreteScheduler(num_train_timesteps=1000, shift=shift)    pipe.scheduler = scheduler    image = pipe(        prompt=prompt,        height=height,        width=width,        guidance_scale=guidance_scale,        num_inference_steps=num_inference_steps,        generator=generator,        max_sequence_length=max_sequence_length,    ).images[0]    return imagedef get_resolution(resolution):    match = re.search(r"(\d+)\s*[×x]\s*(\d+)", resolution)    if match:        return int(match.group(1)), int(match.group(2))    return 10241024def make_demo(ov_pipe):    def generate(        prompt,        resolution="1024x1024 ( 1:1 )",        seed=42,        steps=9,        shift=3.0,        random_seed=True,        gallery_images=None,        enhance=False,        progress=gr.Progress(track_tqdm=True),    ):        """        Generate an image using the Z-Image model based on the provided prompt and settings.        This function is triggered when the user clicks the "Generate" button. It processes        the input prompt (optionally enhancing it), configures generation parameters, and        produces an image using the Z-Image diffusion transformer pipeline.        Args:            prompt (str): Text prompt describing the desired image content            resolution (str): Output resolution in format "WIDTHxHEIGHT ( RATIO )" (e.g., "1024x1024 ( 1:1 )")            seed (int): Seed for reproducible generation            steps (int): Number of inference steps for the diffusion process            shift (float): Time shift parameter for the flow matching scheduler            random_seed (bool): Whether to generate a new random seed, if True will ignore the seed input            gallery_images (list): List of previously generated images to append to (only needed for the Gradio UI)            enhance (bool): This was Whether to enhance the prompt (DISABLED! Do not use)            progress (gr.Progress): Gradio progress tracker for displaying generation progress (only needed for the Gradio UI)        Returns:            tuple: (gallery_images, seed_str, seed_int)                - gallery_images: Updated list of generated images including the new image                - seed_str: String representation of the seed used for generation                - seed_int: Integer representation of the seed used for generation        """        if random_seed:            new_seed = random.randint(11000000)        else:            new_seed = seed if seed != -1 else random.randint(11000000)        try:            resolution_str = resolution.split(" ")[0]        except:            resolution_str = "1024x1024"        image = generate_image(            pipe=ov_pipe,            prompt=prompt,            resolution=resolution_str,            seed=new_seed,            guidance_scale=0.0,            num_inference_steps=int(steps + 1),            shift=shift,        )        if gallery_images is None:            gallery_images = []        # gallery_images.append(image)        gallery_images = [image] + gallery_images  # latest output to be at the top of the list        return gallery_images, str(new_seed), int(new_seed)    with gr.Blocks(title="Z-Image Demo"as demo:        gr.Markdown(f"""# Z-Image-Turbo - OpenVINO""")        with gr.Row():            with gr.Column(scale=1):                prompt_input = gr.Textbox(label="Prompt", lines=3, placeholder="Enter your prompt here...")                # PE components (Temporarily disabled)                # with gr.Row():                #     enable_enhance = gr.Checkbox(label="Enhance Prompt (DashScope)", value=False)                #     enhance_btn = gr.Button("Enhance Only")                with gr.Row():                    choices = [int(k) for k in RES_CHOICES.keys()]                    res_cat = gr.Dropdown(value=1024, choices=choices, label="Resolution Category")                    initial_res_choices = RES_CHOICES["1024"]                    resolution = gr.Dropdown(value=initial_res_choices[0], choices=RESOLUTION_SET, label="Width x Height (Ratio)")                with gr.Row():                    seed = gr.Number(label="Seed", value=42, precision=0)                    random_seed = gr.Checkbox(label="Random Seed", value=True)                with gr.Row():                    steps = gr.Slider(label="Steps", minimum=1, maximum=100, value=8, step=1, interactive=False)                    shift = gr.Slider(label="Time Shift", minimum=1.0, maximum=10.0, value=3.0, step=0.1)                generate_btn = gr.Button("Generate", variant="primary")                # Example prompts                gr.Markdown("### 📝 Example Prompts")                gr.Examples(examples=EXAMPLE_PROMPTS, inputs=prompt_input, label=None)            with gr.Column(scale=1):                output_gallery = gr.Gallery(                    label="Generated Images",                    columns=2,                    rows=2,                    height=600,                    object_fit="contain",                    format="png",                    interactive=False,                )                used_seed = gr.Textbox(label="Seed Used", interactive=False)        def update_res_choices(_res_cat):            if str(_res_cat) in RES_CHOICES:                res_choices = RES_CHOICES[str(_res_cat)]            else:                res_choices = RES_CHOICES["1024"]            return gr.update(value=res_choices[0], choices=res_choices)        res_cat.change(update_res_choices, inputs=res_cat, outputs=resolution)        # PE enhancement button (Temporarily disabled)        # enhance_btn.click(        #     prompt_enhance,        #     inputs=[prompt_input, enable_enhance],        #     outputs=[prompt_input, final_prompt_output]        # )        generate_btn.click(            generate,            inputs=[prompt_input, resolution, seed, steps, shift, random_seed, output_gallery],            outputs=[output_gallery, used_seed, seed],        )        return demo
from gradio_helper import make_demodemo = make_demo(ov_pipe)try:    demo.launch(debug=True)except Exception:    demo.launch(debug=True, share=True)

运行效果:

参考资料

  • https://docs.openvino.ai/2025/index.html
  • https://www.modelscope.cn/gallery/snake7gun/b3449b63-db17-41d2-9df2-2e00c3163e5f

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-08-21 22:54:09 HTTP/2.0 GET : https://f.mffb.com.cn/a/507655.html
  2. 运行时间 : 0.140668s [ 吞吐率:7.11req/s ] 内存消耗:4,538.12kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=3a8e5d1d8f4ef618484892bf01dcfdce
  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.000529s ] mysql:host=127.0.0.1;port=3306;dbname=f_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.000712s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.000805s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000232s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.000456s ]
  6. SELECT * FROM `set` [ RunTime:0.000190s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.000557s ]
  8. SELECT * FROM `article` WHERE `id` = 507655 LIMIT 1 [ RunTime:0.000507s ]
  9. UPDATE `article` SET `lasttime` = 1787324049 WHERE `id` = 507655 [ RunTime:0.007618s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 66 LIMIT 1 [ RunTime:0.000285s ]
  11. SELECT * FROM `article` WHERE `id` < 507655 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.000390s ]
  12. SELECT * FROM `article` WHERE `id` > 507655 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.000390s ]
  13. SELECT * FROM `article` WHERE `id` < 507655 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.000593s ]
  14. SELECT * FROM `article` WHERE `id` < 507655 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.004226s ]
  15. SELECT * FROM `article` WHERE `id` < 507655 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.001145s ]
0.142223s