当前位置:首页>java>Z-Image-Turbo 启动代码存档

Z-Image-Turbo 启动代码存档

  • 2026-01-31 07:10:43
Z-Image-Turbo 启动代码存档
# 模型下载请见# https://www.modelscope.cn/models/Tongyi-MAI/Z-Image-Turbo
python -VPython 3.10.19conda -Vconda 25.11.1
# requirements.txtaccelerate==1.12.0anyio==4.12.1blinker==1.9.0certifi==2026.1.4charset-normalizer==3.4.4click==8.3.1diffusers @ git+https://github.com/huggingface/diffusers@5efb81fa711863fdece9136ad10788440e658b40exceptiongroup==1.3.1filelock==3.20.3Flask==3.1.2fsspec==2026.1.0h11==0.16.0hf-xet==1.2.0httpcore==1.0.9httpx==0.28.1huggingface-hub==0.36.0idna==3.11importlib_metadata==8.7.1itsdangerous==2.2.0Jinja2==3.1.6MarkupSafe==2.1.5modelscope==1.33.0mpmath==1.3.0networkx==3.4.2numpy==2.2.6nvidia-cublas-cu12==12.4.5.8nvidia-cuda-cupti-cu12==12.4.127nvidia-cuda-nvrtc-cu12==12.4.127nvidia-cuda-runtime-cu12==12.4.127nvidia-cudnn-cu12==9.1.0.70nvidia-cufft-cu12==11.2.1.3nvidia-curand-cu12==10.3.5.147nvidia-cusolver-cu12==11.6.1.9nvidia-cusparse-cu12==12.3.1.170nvidia-cusparselt-cu12==0.6.2nvidia-nccl-cu12==2.21.5nvidia-nvjitlink-cu12==12.4.127nvidia-nvtx-cu12==12.4.127packaging==25.0peft==0.18.1pillow==12.1.0psutil==7.2.1PyYAML==6.0.3regex==2026.1.15requests==2.32.5safetensors==0.7.0shellingham==1.5.4sympy==1.13.1tokenizers==0.22.2torch==2.6.0+cu124torchaudio==2.6.0+cu124torchvision==0.21.0+cu124tqdm==4.67.1transformers==4.57.5triton==3.2.0typer-slim==0.21.1typing_extensions==4.15.0urllib3==2.6.3Werkzeug==3.1.5zipp==3.23.0
# web_app.pyimport torchimport osimport torch.multiprocessing as mpfrom modelscope import ZImagePipelinefrom datetime import datetimefrom flask import Flask, render_template_string, send_from_directory, request, jsonifyimport loggingimport signalimport sysimport randomimport timeimport json# ================= 配置区 =================MODEL_PATH = "./Z-Image-Turbo"OUTPUT_DIR = "./img"HTTP_PORT = 5000DEFAULT_NEG = "ugly, deformed, noisy, blurry, low contrast, text, watermark, bad anatomy, bad hands, low quality"app = Flask(__name__)log = logging.getLogger('werkzeug')log.setLevel(logging.ERROR)processes = []shared_queue = None# ================= 前端界面 (布局优化版) =================HTML_TEMPLATE = """<!DOCTYPE html><htmllang="zh-CN"><head>    <metacharset="UTF-8">    <metaname="viewport"content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover">    <title>Z-Image-Turbo</title>    <style>        :root { --primary#00E5FF--bg#050505--panel#111--border#222--text#ddd; }        * { box-sizing: border-box; outline: none; -webkit-tap-highlight-color: transparent; }        body { font-family"PingFang SC", sans-serif; backgroundvar(--bg); colorvar(--text); margin0display: flex; height100vhoverflow: hidden; }        /* === 侧边栏优化 === */        .sidebar {             width380pxbackgroundvar(--panel); padding20px            border-right1px solid var(--border); display: flex; flex-direction: column; gap16px            flex-shrink0overflow-y: auto; z-index20;        }        /* 强制显示滚动条 (解决电脑端看不到底部的问题) */        .sidebar::-webkit-scrollbar { width6px; }        .sidebar::-webkit-scrollbar-track { background#000; }        .sidebar::-webkit-scrollbar-thumb { background#333border-radius3px; }        .sidebar::-webkit-scrollbar-thumb:hover { backgroundvar(--primary); }        .header h2 { margin0font-size20pxcolor#fffletter-spacing1.5pxfont-weight800font-style: italic; backgroundlinear-gradient(90deg#fffvar(--primary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }        .header .status { font-size12pxcolor#666margin-top6pxfont-family: monospace; }        .control-label { font-size12pxcolor#888font-weight600margin-bottom5pxdisplay: block; }        /* 输入框 */        textareainput { width100%background#1a1a1acolor#fffborder1px solid var(--border); border-radius8pxpadding10pxfont-size13pxtransition: all 0.2s; }        textarea:focusinput:focus { border-colorvar(--primary); background#222; }        textarea { min-height90pxresize: vertical; }        /* 分辨率按钮 (紧凑) */        .res-presets { display: grid; grid-template-columnsrepeat(21fr); gap8pxmargin-bottom8px; }        .res-btn { background#222border1px solid #333color#cccpadding10pxborder-radius6pxfont-size12pxcursor: pointer; display: flex; flex-direction: column; align-items: center; gap2pxtransition0.2s; }        .res-btn span { font-size10pxcolor#666font-family: monospace; }        .res-btn.active { backgroundrgba(02292550.15); border-colorvar(--primary); color#fff; }        .res-btn.active span { colorvar(--primary); }        /* 自定义分辨率 */        .custom-res { display: none; gap8pxalign-items: center; animation: slideDown 0.3s; }        .custom-res.show { display: flex; }        .res-input-wrap { position: relative; flex1; }        .res-input-wrap span { position: absolute; right10pxtop50%transformtranslateY(-50%); font-size11pxcolor#555; }        @keyframes slideDown { from { opacity0transformtranslateY(-10px); } to { opacity1transformtranslateY(0); } }        /* === 参数并排显示 (节省空间且直观) === */        .params-row { display: grid; grid-template-columns1fr 1fr; gap12pxbackground#161616padding12pxborder-radius8pxborder1px solid var(--border); }        .param-item { display: flex; flex-direction: column; gap5px; }        .param-header { display: flex; justify-content: space-between; font-size11pxcolor#888; }        input[type=range] { -webkit-appearance: none; width100%background: transparent; margin5px 0; }        input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; height12pxwidth12pxborder-radius50%backgroundvar(--primary); margin-top: -4px; }        input[type=range]::-webkit-slider-runnable-track { width100%height4pxbackground#333border-radius2px; }        /* 按钮 */        button#gen-btn { width100%padding14pxborder-radius8pxborder: none; font-weight700backgroundvar(--primary); color#000cursor: pointer; margin-top5pxletter-spacing1pxfont-size15px; }        button:disabled { background#333color#777; }        /* 画廊 */        .main { flex1padding20pxoverflow-y: auto; backgroundvar(--bg); }        .gallery { display: grid; grid-template-columnsrepeat(auto-fill, minmax(220px1fr)); gap15px; }        .img-card { background#111border-radius12pxoverflow: hidden; position: relative; cursor: zoom-in; aspect-ratio1box-shadow0 4px 10px rgba(0,0,0,0.3); border1px solid transparent; transition0.2s; }        .img-card:hover { border-color#333; }        .img-card img { width100%height100%object-fit: cover; display: block; opacity0animation: fadeIn 0.5s forwards; }        @keyframes fadeIn { to { opacity1; } }        /* 灯箱 */        .lightbox { display: none; position: fixed; top0left0width100%height100%backgroundrgba(0,0,0,0.95); backdrop-filterblur(8px); z-index1000flex-direction: column; }        .lightbox.active { display: flex; }        .lb-img-area { flex1display: flex; align-items: center; justify-content: center; padding20pxoverflow: hidden; }        .lb-img-area img { max-width100%max-height100%box-shadow0 0 30px rgba(0,0,0,0.5); border-radius4pxcursor: zoom-out; }        .lb-panel { background#161616border-top1px solid #333padding20pxwidth100%flex-shrink0max-height40vhoverflow-y: auto; }        .lb-meta-row { display: flex; gap15pxmargin-bottom12pxfont-size12pxcolorvar(--primary); font-family: monospace; }        .lb-prompt-box { background#222padding12pxborder-radius8pxfont-size13pxline-height1.5color#cccwhite-space: pre-wrap; word-break: break-word; border1px solid #333; }        .lb-label { font-size11pxcolor#666margin-bottom4pxdisplay: block; font-weight: bold; }        @media (max-width768px) { body { flex-direction: column; height: auto; overflow-y: auto; } .sidebar { width100%border-right: none; padding16pxgap12pxbackground#000; } .main { padding10px; } .gallery { grid-template-columnsrepeat(21fr); gap8px; } .lb-panel { padding15px; } }    </style></head><body>    <divclass="sidebar">        <divclass="header"><h2>Z-Image-Turbo</h2><divclass="status">队列: <spanid="q-size">0</span> | 完成: <spanid="f-count">0</span></div></div>        <div><labelclass="control-label">提示词 (Prompt)</label><textareaid="prompt"placeholder="在此输入英文提示词...">Cyberpunk city, neon lights, 8k best quality</textarea></div>        <div>            <labelclass="control-label">尺寸选择</label>            <divclass="res-presets">                <divclass="res-btn"onclick="selectRes(512, 512, this)">极速<span>512x512</span></div>                <divclass="res-btn active"onclick="selectRes(1024, 1024, this)">标准<span>1024x1024</span></div>                <divclass="res-btn"onclick="selectRes(2048, 2048, this)">超清<span>2048x2048</span></div>                <divclass="res-btn"onclick="toggleCustom(this)">自定义<span>Custom</span></div>            </div>            <divclass="custom-res"id="custom-inputs">                <divclass="res-input-wrap"><inputtype="number"id="custom-w"value="1024"step="8"><span></span></div>                <divstyle="color:#666">×</div>                <divclass="res-input-wrap"><inputtype="number"id="custom-h"value="1024"step="8"><span></span></div>            </div>        </div>        <div><labelclass="control-label">种子 (Seed)</label><inputtype="number"id="seed"placeholder="留空为随机 (-1)"value=""></div>        <div>            <labelclass="control-label">高级参数</label>            <divclass="params-row">                <divclass="param-item">                    <divclass="param-header"><span>CFG 引导</span><spanid="val-cfg"style="color:var(--primary)">0.0</span></div>                    <inputtype="range"id="cfg"min="0"max="5"step="0.5"value="0"oninput="document.getElementById('val-cfg').innerText=this.value">                </div>                <divclass="param-item">                    <divclass="param-header"><span>迭代步数</span><spanid="val-steps"style="color:var(--primary)">4</span></div>                    <inputtype="range"id="steps"min="1"max="12"value="4"oninput="document.getElementById('val-steps').innerText=this.value">                </div>            </div>        </div>        <buttonid="gen-btn"onclick="generate()">立即生成 (4张)</button>    </div>    <divclass="main"><divclass="gallery"id="gallery"></div></div>    <divid="lightbox"class="lightbox"onclick="closeLightbox(event)">        <divclass="lb-img-area"><imgid="lb-img"src=""></div>        <divclass="lb-panel"onclick="event.stopPropagation()">            <divclass="lb-meta-row"><spanid="lb-res">尺寸: --</span><spanid="lb-seed">种子: --</span><spanid="lb-steps">步数: --</span></div>            <labelclass="lb-label">提示词 (PROMPT)</label>            <divclass="lb-prompt-box"id="lb-prompt">加载中...</div>            <divstyle="margin-top:10px; text-align:right;"><aid="lb-dl"href="#"target="_blank"style="color:#666; text-decoration:underline; font-size:12px;">查看原图</a></div>        </div>    </div>    <script>        let lastJson="", isGenerating=false, currentW=1024, currentH=1024, isCustom=false;        function selectRes(w,h,btn){isCustom=false;currentW=w;currentH=h;document.querySelectorAll('.res-btn').forEach(b=>b.classList.remove('active'));btn.classList.add('active');document.getElementById('custom-inputs').classList.remove('show');}        function toggleCustom(btn){isCustom=true;document.querySelectorAll('.res-btn').forEach(b=>b.classList.remove('active'));btn.classList.add('active');document.getElementById('custom-inputs').classList.add('show');}        async function generate(){            if(isGenerating)return;            const btn=document.getElementById('gen-btn');            let finalW=isCustom?parseInt(document.getElementById('custom-w').value):currentW;            let finalH=isCustom?parseInt(document.getElementById('custom-h').value):currentH;            finalW-=(finalW%8);finalH-=(finalH%8);            let seedInput = document.getElementById('seed').value;            let finalSeed = (seedInput === "" || seedInput === null) ? -1 : parseInt(seedInput);            const data={                prompt:document.getElementById('prompt').value,                width:finalW,                height:finalH,                seed:finalSeed,                steps:parseInt(document.getElementById('steps').value),                cfg:parseFloat(document.getElementById('cfg').value)            };            if(!data.prompt)return alert("请输入提示词");            isGenerating=true;btn.disabled=true;btn.innerText="生成中...";            try{await fetch('/api/generate',{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify(data)});btn.innerText="已加入队列";setTimeout(()=>{btn.disabled=false;btn.innerText="立即生成 (4张)";isGenerating=false;},2000);}catch(e){alert("请求失败: "+e);btn.disabled=false;isGenerating=false;}        }        async function openLightbox(f){            const lb=document.getElementById('lightbox');lb.classList.add('active');            document.getElementById('lb-img').src=`/img/${f}`;document.getElementById('lb-dl').href=`/img/${f}`;            document.getElementById('lb-prompt').innerText="正在读取信息...";            try{                const res=await fetch(`/api/meta/${f}`);                const data=await res.json();                document.getElementById('lb-prompt').innerText=data.prompt||"无数据";                document.getElementById('lb-res').innerText=`尺寸: ${data.width}x${data.height}`;                document.getElementById('lb-seed').innerText=`种子: ${data.seed}`;                document.getElementById('lb-steps').innerText=`步数: ${data.steps}`;            }catch(e){document.getElementById('lb-prompt').innerText="读取失败";}        }        function closeLightbox(e){document.getElementById('lightbox').classList.remove('active');}        async function refresh(){try{const s=await(await fetch('/api/stats')).json();document.getElementById('q-size').innerText=s.queue;document.getElementById('f-count').innerText=s.total;const imgs=await(await fetch('/api/images')).json();const jsonStr=JSON.stringify(imgs);if(jsonStr!==lastJson){document.getElementById('gallery').innerHTML=imgs.map(f=>`<div class="img-card" onclick="openLightbox('${f}')"><img src="/img/${f}" loading="lazy"></div>`).join('');lastJson=jsonStr;}}catch(e){}}setInterval(refresh,2000);refresh();    </script></body></html>"""# ================= 后端逻辑 =================@app.route('/')def index(): return render_template_string(HTML_TEMPLATE)@app.route('/api/stats')def stats():    if not os.path.exists(OUTPUT_DIR): return jsonify({"queue": 0, "total": 0})    count = len([n for n in os.listdir(OUTPUT_DIR) if n.endswith('.png')])    q_size = shared_queue.qsize() if shared_queue else 0    return jsonify({"queue": q_size, "total": count})@app.route('/api/images')def get_images():    if not os.path.exists(OUTPUT_DIR): return jsonify([])    files = [f for f in os.listdir(OUTPUT_DIR) if f.endswith('.png') and not f.startswith('tmp_')]    files.sort(key=lambda x: os.path.getmtime(os.path.join(OUTPUT_DIR, x)), reverse=True)    return jsonify(files[:60])@app.route('/api/meta/<path:filename>')def get_meta(filename):    json_path = os.path.join(OUTPUT_DIR, filename + ".json")    if os.path.exists(json_path):        try:            with open(json_path, 'r') as f: return jsonify(json.load(f))        except: pass    parts = filename.split('_')    return jsonify({        "prompt": "元数据丢失",        "width": parts[0].split('x')[0] if 'x' in parts[0] else "?",        "height": parts[0].split('x')[1] if 'x' in parts[0] else "?",        "seed": parts[1] if len(parts)>1 else "?",        "steps": "?"    })@app.route('/img/<path:f>')def img(f): return send_from_directory(OUTPUT_DIR, f)@app.route('/api/generate', methods=['POST'])def generate_api():    d = request.json    w = int(d.get('width', 1024))    h = int(d.get('height', 1024))    frontend_seed = int(d.get('seed', -1))    final_seed = frontend_seed if frontend_seed != -1 else random.randint(0, 2**32 - 1)    task = {        'p': d['prompt'],         'w': w, 'h': h,         's': final_seed,        'steps': int(d.get('steps', 4)),         'cfg': float(d.get('cfg', 0.0))    }    shared_queue.put(task)    return jsonify({"status": "ok"})def signal_handler(sig, frame):    print("\n[系统] 正在关闭服务...")    for p in processes:        if p.is_alive():            p.terminate()            p.join(timeout=1)    sys.exit(0)# ================= GPU Worker =================def gpu_worker(rank, model_path, output_dir, queue):    signal.signal(signal.SIGINT, signal.SIG_IGN)    device = f"cuda:{rank}"    try:        torch.cuda.set_device(device)        print(f"[GPU {rank}] 正在加载模型...")        torch.cuda.empty_cache()        pipe = ZImagePipeline.from_pretrained(model_path, torch_dtype=torch.bfloat16, local_files_only=True).to(device)        print(f"[GPU {rank}] 就绪")    except Exception as e:        print(f"[GPU {rank}] ❌ 初始化失败: {e}")        return    while True:        try:            task = queue.get()            p, w, h, s = task['p'], task['w'], task['h'], task['s']            steps, cfg = task['steps'], task['cfg']            print(f"[GPU {rank}] 绘图: {w}x{h} | S:{s} | CFG:{cfg}")            g = torch.Generator(device).manual_seed(s)            with torch.inference_mode():                imgs = pipe(                    prompt=p,                    negative_prompt=DEFAULT_NEG,                    height=h, width=w,                    num_inference_steps=steps,                     guidance_scale=cfg,                    num_images_per_prompt=4,                    generator=g                ).images                for i, img in enumerate(imgs):                    ts = datetime.now().strftime("%H%M%S")                    fn = f"{w}x{h}_{s}_{ts}_g{rank}_{i}.png"                    img.save(os.path.join(output_dir, f"tmp_{fn}"))                    meta = {                        "prompt": p, "width": w, "height": h, "seed": s,                        "steps": steps, "cfg": cfg, "timestamp": ts, "gpu": rank                    }                    with open(os.path.join(output_dir, f"tmp_{fn}.json"), 'w') as f:                        json.dump(meta, f)                    os.rename(os.path.join(output_dir, f"tmp_{fn}"), os.path.join(output_dir, fn))                    os.rename(os.path.join(output_dir, f"tmp_{fn}.json"), os.path.join(output_dir, fn + ".json"))            torch.cuda.empty_cache()        except KeyboardInterrupt:            break        except Exception as e:            print(f"[GPU {rank}] 错误: {e}")            time.sleep(1)if __name__ == "__main__":    signal.signal(signal.SIGINT, signal_handler)    mp.set_start_method('spawn', force=True)    if not os.path.exists(OUTPUT_DIR): os.makedirs(OUTPUT_DIR)    manager = mp.Manager()    shared_queue = manager.Queue()    print(f"[系统] 启动中... (检测到 {torch.cuda.device_count()} GPU)")    for r in range(torch.cuda.device_count()):        p = mp.Process(target=gpu_worker, args=(r, MODEL_PATH, OUTPUT_DIR, shared_queue))        p.daemon = True         p.start()        processes.append(p)    app.run(host='0.0.0.0', port=HTTP_PORT, threaded=True, use_reloader=False)
tree.├── Z-Image-Turbo│   ├── README.md│   ├── assets│   │   ├── DMDR.webp│   │   ├── Z-Image-Gallery.pdf│   │   ├── architecture.webp│   │   ├── decoupled-dmd.webp│   │   ├── leaderboard.png│   │   ├── leaderboard.webp│   │   ├── reasoning.png│   │   ├── showcase.jpg│   │   ├── showcase_editing.png│   │   ├── showcase_realistic.png│   │   └── showcase_rendering.png│   ├── configuration.json│   ├── model_index.json│   ├── scheduler│   │   └── scheduler_config.json│   ├── text_encoder│   │   ├── config.json│   │   ├── generation_config.json│   │   ├── model-00001-of-00003.safetensors│   │   ├── model-00002-of-00003.safetensors│   │   ├── model-00003-of-00003.safetensors│   │   └── model.safetensors.index.json│   ├── tokenizer│   │   ├── merges.txt│   │   ├── tokenizer.json│   │   ├── tokenizer_config.json│   │   └── vocab.json│   ├── transformer│   │   ├── config.json│   │   ├── diffusion_pytorch_model-00001-of-00003.safetensors│   │   ├── diffusion_pytorch_model-00002-of-00003.safetensors│   │   ├── diffusion_pytorch_model-00003-of-00003.safetensors│   │   └── diffusion_pytorch_model.safetensors.index.json│   └── vae│       ├── config.json│       └── diffusion_pytorch_model.safetensors├── img│   ├── 1024x1024_1490759278_082319_g0_0.png│   ├── 1024x1024_1490759278_082319_g0_0.png.json│   ├── 1024x1024_1490759278_082320_g0_1.png│   ├── 1024x1024_1490759278_082320_g0_1.png.json│   ├── 1024x1024_1490759278_082320_g0_2.png│   ├── 1024x1024_1490759278_082320_g0_2.png.json│   ├── 1024x1024_1490759278_082321_g0_3.png│   ├── 1024x1024_1490759278_082321_g0_3.png.json│   ├── 1024x1024_388134676_082430_g0_0.png│   ├── 1024x1024_388134676_082430_g0_0.png.json│   ├── 1024x1024_388134676_082431_g0_1.png│   ├── 1024x1024_388134676_082431_g0_1.png.json│   ├── 1024x1024_388134676_082431_g0_2.png│   ├── 1024x1024_388134676_082431_g0_2.png.json│   ├── 1024x1024_388134676_082432_g0_3.png│   └── 1024x1024_388134676_082432_g0_3.png.json├── requirements.txt└── web_app.pylsZ-Image-Turbo   img  requirements.txt  web_app.py

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-02-08 09:20:34 HTTP/2.0 GET : https://f.mffb.com.cn/a/464377.html
  2. 运行时间 : 0.190629s [ 吞吐率:5.25req/s ] 内存消耗:4,586.04kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=82386923b54da4b7b2d6602ff238991d
  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.000387s ] mysql:host=127.0.0.1;port=3306;dbname=f_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.000572s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.006735s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000998s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.000530s ]
  6. SELECT * FROM `set` [ RunTime:0.018527s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.000736s ]
  8. SELECT * FROM `article` WHERE `id` = 464377 LIMIT 1 [ RunTime:0.008313s ]
  9. UPDATE `article` SET `lasttime` = 1770513634 WHERE `id` = 464377 [ RunTime:0.009309s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 65 LIMIT 1 [ RunTime:0.001092s ]
  11. SELECT * FROM `article` WHERE `id` < 464377 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.008159s ]
  12. SELECT * FROM `article` WHERE `id` > 464377 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.000690s ]
  13. SELECT * FROM `article` WHERE `id` < 464377 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.035958s ]
  14. SELECT * FROM `article` WHERE `id` < 464377 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.021941s ]
  15. SELECT * FROM `article` WHERE `id` < 464377 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.002929s ]
0.192153s