bgg热门度排序

This commit is contained in:
yeyang
2023-03-28 18:03:08 +08:00
parent 04dae70d80
commit 3f311c12ab
2 changed files with 7 additions and 3 deletions

View File

@@ -1,3 +1,8 @@
# 1.1.7
* 新增由 **@卡丘** 提供的bgg搜索
# 1.1.6
* 新增**匿名**发送消息

View File

@@ -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
]
}