Skip to content

Commit

Permalink
perf: 搜索为空
Browse files Browse the repository at this point in the history
  • Loading branch information
XasYer committed Nov 20, 2024
1 parent 30b2386 commit d460d76
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions apps/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ export const rule = {
}
}
}).filter(Boolean)
if (!games.length) {
await e.reply(`没有所有到${name}相关的游戏, 换个关键词试试?`)
return true
}
const screenshotOptions = {
title: `${name} 搜索结果`,
games,
Expand Down
2 changes: 1 addition & 1 deletion models/help/help.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const helpList = [
{
icon: 31,
title: '#steam搜索',
desc: '查看steam游戏'
desc: '搜索steam游戏'
},
{
icon: 32,
Expand Down

0 comments on commit d460d76

Please sign in to comment.