From 3f311c12ab0dab606f00a6d73683eb2f64591698 Mon Sep 17 00:00:00 2001 From: yeyang <746659424@qq.com> Date: Tue, 28 Mar 2023 18:03:08 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20bgg=E7=83=AD=E9=97=A8=E5=BA=A6?= =?UTF-8?q?=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 5 +++++ model/api/funApi.js | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 90918d5..da7f748 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +# 1.1.7 + +* 新增由 **@卡丘** 提供的bgg搜索 + + # 1.1.6 * 新增**匿名**发送消息 diff --git a/model/api/funApi.js b/model/api/funApi.js index 516b58d..2853a7f 100644 --- a/model/api/funApi.js +++ b/model/api/funApi.js @@ -280,7 +280,7 @@ export default new class { '未检测到依赖cheerio,请安装后再使用该功能,安装命令:pnpm add cheerio -w 或 pnpm install -P' ) }) - let url = 'https://www.gstonegames.com/game/?&keyword=' + encodeURIComponent(keyword) + let url = 'https://www.gstonegames.com/game/?hot_sort=1&keyword=' + encodeURIComponent(keyword) const home = await request.get(url).then((res) => res.text()) const $ = cheerio.load(home) @@ -329,8 +329,7 @@ export default new class { return [ '集石该游戏页面无BGG信息:', `搜索地址:${url}`, - '', - '以下是该游戏集石页面的截图:', + '\n以下是该游戏集石页面的截图:', screenshot ] }