From 24cf158d22dd94d8fb9428957506ba707416a47d Mon Sep 17 00:00:00 2001 From: zhiyu1998 <542716863@qq.com> Date: Sat, 24 Aug 2024 22:17:56 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20chore:=20`=E5=8C=BB=E8=8D=AF?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2`=E8=BD=BB=E9=87=8F=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/query.js | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/apps/query.js b/apps/query.js index c609f20..86fbd3f 100644 --- a/apps/query.js +++ b/apps/query.js @@ -3,8 +3,6 @@ import axios from "axios"; import fetch from "node-fetch"; import _ from "lodash"; -// 爬虫库 -import puppeteer from "../../../lib/puppeteer/puppeteer.js"; // 常量 import { CAT_LIMIT, COMMON_USER_AGENT, REDIS_YUNZAI_ANIMELIST } from "../constants/constant.js"; import { LINUX_AI_PROMPT, LINUX_QUERY, REDIS_YUNZAI_LINUX } from "../constants/query.js"; @@ -75,21 +73,6 @@ export class query extends plugin { const promises = res.map(async element => { const title = this.removeTag(element.title); const template = `${ title }\n标签:${ element.secondTitle }\n介绍:${ element.introduction }`; - - if (title === keyword) { - const browser = await puppeteer.browserInit(); - const page = await browser.newPage(); - await page.goto(`https://www.dayi.org.cn/drug/${ element.id }`); - const buff = await page.screenshot({ - fullPage: true, - type: "jpeg", - omitBackground: false, - quality: 90, - }); - await e.reply(segment.image(buff)); - browser.close(); - } - return { message: { type: "text",