乐于分享
好东西不私藏

从分享口令到资源下载,实现一个小红书无水印资源解析工具

从分享口令到资源下载,实现一个小红书无水印资源解析工具

目标

输入一段分享文案、短链或作品链接,输出:

  • • 作品基础信息
  • • 作者信息
  • • 点赞 / 收藏 / 评论 / 分享数据
  • • 图片下载地址
  • • 视频下载地址
  • • 动图视频流地址

核心链路:

输入文本-> 提取候选链接-> 短链还原为真实链接-> 抓取作品页 HTML-> 提取 window.__INITIAL_STATE__-> 筛出 noteData-> 生成结构化详情-> 返回前端使用

解析逻辑

提取候选链接

输入通常不是纯 URL,而是一整段分享口令,需要先从文本中提取链接。

支持的链接类型:

  • • xhslink.com/...
  • • www.xiaohongshu.com/explore/...
  • • www.xiaohongshu.com/discovery/item/...
  • • www.xiaohongshu.com/user/profile/...

示例:

const LINK_REGEX =  /(?:https?:\/\/)?www\.xiaohongshu\.com\/explore\/[^\s"'<>\\^`{|},。;!?、【】《》]+/gi;const SHARE_REGEX =  /(?:https?:\/\/)?www\.xiaohongshu\.com\/discovery\/item\/[^\s"'<>\\^`{|},。;!?、【】《》]+/gi;const SHORT_REGEX =  /(?:https?:\/\/)?xhslink\.com\/[^\s"'<>\\^`{|},。;!?、【】《》]+/gi;function normalizeWebUrl(url) {  return url.startsWith("http://") || url.startsWith("https://")    ? url    : `https://${url}`;}function extractCandidateLinks(text) {  if (!text?.trim()) return [];  const matches = [    ...Array.from(text.matchAll(SHORT_REGEX), (m) => normalizeWebUrl(m[0])),    ...Array.from(text.matchAll(SHARE_REGEX), (m) => normalizeWebUrl(m[0])),    ...Array.from(text.matchAll(LINK_REGEX), (m) => normalizeWebUrl(m[0])),  ];  return [...new Set(matches)];}

还原短链

如果提取到的是 xhslink.com 短链,不能直接解析,需要先跟随跳转拿到真实地址。

示例:

async function request(url, options = {}) {  const response = await fetch(url, {    headers: {      accept:        "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8",      referer: "https://www.xiaohongshu.com/explore",      "user-agent":        "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36",      ...(options.cookie ? { cookie: options.cookie } : {}),    },    redirect: "follow",    cache: "no-store",  });  if (!response.ok) {    throw new Error(`Request failed: ${response.status}`);  }  return response;}async function resolveUrl(url, options = {}) {  const response = await request(url, options);  return response.url;}

提取真实链接:

async function extractLinks(text, options = {}) {  const candidates = extractCandidateLinks(text);  const links = [];  for (const candidate of candidates) {    const link = /xhslink\.com/i.test(candidate)      ? await resolveUrl(candidate, options)      : candidate;    links.push(link);  }  return [...new Set(links)];}

抓取 HTML

拿到真实作品链接后,直接请求页面 HTML。

示例:

async function fetchText(url, options = {}) {  const response = await request(url, options);  return response.text();}

抓 HTML 的关键不是库,而是请求头:

  • • User-Agent
  • • Referer
  • • 可选 cookie

提取 window.__INITIAL_STATE__

作品详情通常在页面脚本里的 window.__INITIAL_STATE__ 中。

第一步:找到脚本。

const SCRIPT_REGEX = /<script\b[^>]*>([\s\S]*?)<\/script>/gi;function extractInitialStateScript(html) {  if (!html) return "";  let matchedScript = "";  let match;  while ((match = SCRIPT_REGEX.exec(html)) !== null) {    const script = match[1]?.trim() ?? "";    if (script.startsWith("window.__INITIAL_STATE__")) {      matchedScript = script;    }  }  return matchedScript;}

第二步:把脚本对象还原成可读取对象。

import vm from "node:vm";function evaluateInitialState(script) {  if (!script) return {};  const cleaned = script    .replace(/^window\.__INITIAL_STATE__\s*=\s*/, "")    .replace(/;+\s*$/, "")    .trim();  if (!cleaned || (!cleaned.startsWith("{") && !cleaned.startsWith("["))) {    return {};  }  try {    return vm.runInNewContext(`(${cleaned})`, Object.create(null), {      timeout: 1000,    });  } catch {    return {};  }}

从初始状态中筛出作品数据

不同页面结构下,作品数据路径可能不同,常见是 PC 和手机两套结构。

示例:

const PC_KEYS_LINK = ["note", "noteDetailMap", "[-1]", "note"];const PHONE_KEYS_LINK = ["noteData", "data", "noteData"];function deepGet(input, keys, defaultValue = undefined) {  let current = input;  for (const key of keys) {    if (current == null) return defaultValue;    if (/^\[-?\d+\]$/.test(key)) {      const index = Number.parseInt(key.slice(1, -1), 10);      current = Array.isArray(current) ? current.at(index) : Object.values(current).at(index);      continue;    }    current = current[key];  }  return current ?? defaultValue;}function filterNoteData(payload) {  const phone = deepGet(payload, PHONE_KEYS_LINK, null);  if (phone && typeof phone === "object") return phone;  const pc = deepGet(payload, PC_KEYS_LINK, null);  if (pc && typeof pc === "object") return pc;  return {};}function parseNoteDataFromHtml(html) {  const script = extractInitialStateScript(html);  const payload = evaluateInitialState(script);  return filterNoteData(payload);}

安全提取字段

第三方结构不稳定,字段提取不要写死。

示例:

function safeExtract(input, path, defaultValue) {  if (!path) return input ?? defaultValue;  const segments = path.split(".");  let current = input;  for (const segment of segments) {    if (current == null) return defaultValue;    const match = /^(?<key>[^\[]+)(?:\[(?<index>-?\d+)\])?$/.exec(segment);    if (!match?.groups?.key || typeof current !== "object") {      return defaultValue;    }    current = current[match.groups.key];    if (match.groups.index != null) {      const index = Number.parseInt(match.groups.index, 10);      current = Array.isArray(current) ? current.at(index) : Object.values(current ?? {}).at(index);    }  }  return current ?? defaultValue;}

恢复 URL 转义

很多资源地址不是直接可用 URL,而是带转义字符,需要还原。

示例:

function decodeEscapedUrl(url) {  return url    .replace(/\\u([\da-fA-F]{4})/g, (_, code) =>      String.fromCharCode(Number.parseInt(code, 16))    )    .replace(/\\x([\da-fA-F]{2})/g, (_, code) =>      String.fromCharCode(Number.parseInt(code, 16))    )    .replace(/\\\//g, "/");}

识别作品类型

作品类型直接决定后面走图片逻辑还是视频逻辑。

示例:

function classifyWork(noteData) {  const type = safeExtract(noteData, "type", "");  const imageList = safeExtract(noteData, "imageList", []);  if (!["video", "normal"].includes(type) || imageList.length === 0) {    return "未知";  }  if (type === "video") {    return imageList.length === 1 ? "视频" : "图集";  }  return "图文";}

提取图片资源

图片资源处理分两步:

  1. 1. 从原始图片 URL 中提取 token
  2. 2. 根据 token 重建下载地址

示例:

function extractImageToken(url) {  if (!url) return "";  const raw = url.split("!")[0] ?? "";  try {    const parsed = new URL(raw);    const parts = parsed.pathname.split("/").filter(Boolean);    return parts.join("/");  } catch {    return raw.replace(/^https?:\/\/[^/]+\//, "");  }}function buildImageUrl(token, imageFormat) {  if (imageFormat === "auto") {    return `https://sns-img-bd.xhscdn.com/${token}`;  }  return `https://ci.xiaohongshu.com/${token}?imageView2/format/${imageFormat}`;}function stripShareTokenParams(url) {  return url    .replace(/([?&])xsec_token=[^&#]*/gi, "$1")    .replace(/([?&])xsec_source=[^&#]*/gi, "$1")    .replace(/\?&/g, "?")    .replace(/&&+/g, "&")    .replace(/[?&]($|#)/, "$1");}function cleanDownloadUrl(url, imageFormat) {  const decoded = decodeEscapedUrl(url);  return stripShareTokenParams(decoded);}function extractImageLinks(noteData, imageFormat) {  const imageList = safeExtract(noteData, "imageList", []);  const tokens = imageList    .map((item) => extractImageToken(safeExtract(item, "urlDefault", "")))    .filter(Boolean);  return {    downloadUrls: tokens.map((token) =>      cleanDownloadUrl(buildImageUrl(token, imageFormat), imageFormat)    ),    liveUrls: imageList.map((item) => {      const value = safeExtract(item, "stream.h264[0].masterUrl", "");      return value ? decodeEscapedUrl(value) : null;    }),  };}

说明:

  • • downloadUrls 是静态图片地址
  • • liveUrls 是动态图对应的视频流地址

提取视频资源

视频资源通常有多档流,不能随便取第一条。

支持的优选策略:

  • • resolution
  • • bitrate
  • • size

示例:

function extractVideoLinks(noteData, preference = "resolution") {  const originVideoKey = safeExtract(noteData, "video.consumer.originVideoKey", "");  if (originVideoKey) {    return [decodeEscapedUrl(`https://sns-video-bd.xhscdn.com/${originVideoKey}`)];  }  const h264 = safeExtract(noteData, "video.media.stream.h264", []);  const h265 = safeExtract(noteData, "video.media.stream.h265", []);  const items = [...h264, ...h265];  if (items.length === 0) return [];  items.sort((left, right) => {    switch (preference) {      case "bitrate":        return (left.videoBitrate ?? 0) - (right.videoBitrate ?? 0);      case "size":        return (left.size ?? 0) - (right.size ?? 0);      case "resolution":      default:        return (left.height ?? 0) - (right.height ?? 0);    }  });  const target = items.at(-1);  const backupUrl = target?.backupUrls?.[0];  const masterUrl = target?.masterUrl;  return [decodeEscapedUrl(backupUrl ?? masterUrl ?? "")].filter(Boolean);}

生成结构化结果

最终输出不要直接把原始 noteData 返回前端,应该转成稳定结构。

示例:

function extractDetailData(noteData, sourceUrl, imageFormat, videoPreference) {  if (!noteData || Object.keys(noteData).length === 0) return null;  const noteId = safeExtract(noteData, "noteId", "");  if (!noteId) return null;  const type = classifyWork(noteData);  const detail = {    id: noteId,    url: sourceUrl || `https://www.xiaohongshu.com/explore/${noteId}`,    title: safeExtract(noteData, "title", ""),    desc: safeExtract(noteData, "desc", ""),    type,    authorName:      safeExtract(noteData, "user.nickname", "") ||      safeExtract(noteData, "user.nickName", ""),    authorId: safeExtract(noteData, "user.userId", ""),    authorUrl: "",    likedCount: safeExtract(noteData, "interactInfo.likedCount", -1),    collectedCount: safeExtract(noteData, "interactInfo.collectedCount", -1),    commentCount: safeExtract(noteData, "interactInfo.commentCount", -1),    shareCount: safeExtract(noteData, "interactInfo.shareCount", -1),    tags: safeExtract(noteData, "tagList", [])      .map((item) => safeExtract(item, "name", ""))      .filter(Boolean),    downloadUrls: [],    liveUrls: [],  };  detail.authorUrl = detail.authorId    ? `https://www.xiaohongshu.com/user/profile/${detail.authorId}`    : "";  if (type === "视频") {    detail.downloadUrls = extractVideoLinks(noteData, videoPreference);    detail.liveUrls = [null];  } else if (type === "图文" || type === "图集") {    const media = extractImageLinks(noteData, imageFormat);    detail.downloadUrls = media.downloadUrls;    detail.liveUrls = media.liveUrls;  }  return detail;}

详情接口

请求方式

POST /api/detail

请求参数

{  "url": "分享文案、短链或作品链接",  "imageFormat": "jpeg",  "videoPreference": "resolution",  "cookie": "可选", //有cookie可以让资源更清晰  "index": [1, 3]}

参数说明:

参数
必填
说明
url
原始输入文本,不要求是纯 URL
imageFormat
图片格式:auto / png / webp / jpeg / heic / avif
videoPreference
视频优选:resolution / bitrate / size
cookie
抓取时透传的 Cookie
index
只返回指定序号资源

cookie 获取:

  1. 1. 打开浏览器(可选无痕模式启动),访问 https://www.xiaohongshu.com/explore
  2. 2. 登录小红书账号(可跳过)
  3. 3. 按下 F12 打开开发人员工具
  4. 4. 选择 网络 选项卡
  5. 5. 勾选 保留日志
  6. 6. 在 过滤 输入框输入 cookie-name:web_session
  7. 7. 选择 Fetch/XHR 筛选器
  8. 8. 点击小红书页面任意作品
  9. 9. 在 网络 选项卡选择任意数据包(如果无数据包,重复步骤7)
  10. 10. 全选复制 Cookie 写入程序或配置文件
cookie

返回结构

{  "message": "success",  "params": {    "url": "..."  },  "data": {    "id": "作品ID",    "url": "作品链接",    "title": "标题",    "desc": "描述",    "type": "图文",    "authorName": "作者昵称",    "authorId": "作者ID",    "authorUrl": "作者主页",    "likedCount": 123,    "collectedCount": 45,    "commentCount": 9,    "shareCount": 2,    "tags": ["标签1", "标签2"],    "downloadUrls": ["https://..."],    "liveUrls": ["https://..."]  }}

接口实现

export async function getDetail(params) {  const links = await extractLinks(params.url, params);  if (links.length === 0) {    return { message: "提取链接失败", params, data: null };  }  const html = await fetchText(links[0], params);  const noteData = parseNoteDataFromHtml(html);  let detail = extractDetailData(    noteData,    links[0],    params.imageFormat ?? "jpeg",    params.videoPreference ?? "resolution"  );  if (detail && Array.isArray(params.index) && params.index.length > 0) {    const indexes = params.index      .map((value) => Number.parseInt(String(value), 10))      .filter((value) => Number.isInteger(value) && value > 0);    detail = {      ...detail,      downloadUrls: indexes.map((index) => detail.downloadUrls[index - 1]).filter(Boolean),      liveUrls: indexes.map((index) => detail.liveUrls[index - 1] ?? null),    };  }  return {    message: detail ? "success" : "failed",    params,    data: detail,  };}

调用示例

最常用请求:

curl -X POST https://xhs.xuqssq.com/api/xhs/detail \  -H "Content-Type: application/json" \  -d '{    "url": "老板说再用这种表情包就拱出去 http://xhslink.com/o/3aSMqUbb7uF \n复制后打开【小红书】查看笔记!"  }'

只返回第 1 和第 3 张图:

curl -X POST https://xhs.xuqssq.com/api/xhs/detail \  -H "Content-Type: application/json" \  -d '{    "url": "老板说再用这种表情包就拱出去 http://xhslink.com/o/3aSMqUbb7uF \n复制后打开【小红书】查看笔记!",    "index": [1, 3]  }'

带 Cookie 抓取:

curl -X POST https://xhs.xuqssq.com/api/xhs/detail \  -H "Content-Type: application/json" \  -d '{    "url": "老板说再用这种表情包就拱出去 http://xhslink.com/o/3aSMqUbb7uF \n复制后打开【小红书】查看笔记!",    "cookie": "a1=...; web_session=..."  }'

GIF 转换

动态图通常拿到的是 MP4/H264 流,不是 GIF 文件。如果前端需要“下载 GIF”,就要本地转码。

转换参数

const GIF_MAX_DURATION_SECONDS = 10;const GIF_FPS = 12;const GIF_WIDTH = 320;const GIF_MAX_COLORS = 128;

转换流程

拉取视频 Blob-> video 加载元数据-> 逐帧 seek-> canvas 绘制帧-> gif 编码-> 输出 Blob-> 下载

核心代码

function loadVideo(blob) {  return new Promise((resolve, reject) => {    const video = document.createElement("video");    const objectUrl = URL.createObjectURL(blob);    video.preload = "auto";    video.muted = true;    video.playsInline = true;    video.src = objectUrl;    const cleanup = () => {      video.removeAttribute("src");      video.load();      URL.revokeObjectURL(objectUrl);    };    video.onloadedmetadata = () => resolve({ video, cleanup });    video.onerror = () => {      cleanup();      reject(new Error("Video metadata load failed"));    };  });}function seekVideo(video, time) {  return new Promise((resolve, reject) => {    const handleSeeked = () => {      video.removeEventListener("seeked", handleSeeked);      video.removeEventListener("error", handleError);      resolve();    };    const handleError = () => {      video.removeEventListener("seeked", handleSeeked);      video.removeEventListener("error", handleError);      reject(new Error("Video seek failed"));    };    video.addEventListener("seeked", handleSeeked, { once: true });    video.addEventListener("error", handleError, { once: true });    video.currentTime = time;  });}

逐帧编码:

for (let frameIndex = 0; frameIndex < totalFrames; frameIndex += 1) {  const currentTime = Math.min(frameIndex / GIF_FPS, Math.max(duration - 0.001, 0));  await seekVideo(video, currentTime);  context.drawImage(video, 0, 0, width, height);  const { data } = context.getImageData(0, 0, width, height);  const palette = quantize(data, GIF_MAX_COLORS, { format: "rgb444" });  const indexedFrame = applyPalette(data, palette, "rgb444");  gif.writeFrame(indexedFrame, width, height, {    palette,    delay: frameDelay,  });}

GIF不限制时长、宽度和帧率,浏览器会明显变卡。


在线体验地址

地址:https://xhs.xuqssq.com

接口调用,可随意调用

curl 'https://xhs.xuqssq.com/api/xhs/detail' \  --data-raw '{"url":"老板说再用这种表情包就拱出去 http://xhslink.com/o/3aSMqUbb7uF \n复制后打开【小红书】查看笔记!"}'
api
基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-04-19 18:50:06 HTTP/1.1 GET : https://www.yeyulingfeng.com/a/537019.html
  2. 运行时间 : 0.103741s [ 吞吐率:9.64req/s ] 内存消耗:4,793.69kb 文件加载:145
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=75c9e6cf39a04203ff1de0e8dba6fd8a
  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.000581s ] mysql:host=127.0.0.1;port=3306;dbname=wenku;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.000784s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.000276s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000245s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.000476s ]
  6. SELECT * FROM `set` [ RunTime:0.000212s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.000553s ]
  8. SELECT * FROM `article` WHERE `id` = 537019 LIMIT 1 [ RunTime:0.000493s ]
  9. UPDATE `article` SET `lasttime` = 1776595806 WHERE `id` = 537019 [ RunTime:0.000835s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 64 LIMIT 1 [ RunTime:0.000241s ]
  11. SELECT * FROM `article` WHERE `id` < 537019 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.000400s ]
  12. SELECT * FROM `article` WHERE `id` > 537019 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.000374s ]
  13. SELECT * FROM `article` WHERE `id` < 537019 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.005180s ]
  14. SELECT * FROM `article` WHERE `id` < 537019 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.005097s ]
  15. SELECT * FROM `article` WHERE `id` < 537019 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.002479s ]
0.105412s