Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

搜索关键词的空格的编码(' '或'+') 影响搜索结果 #11

Open
kafovin opened this issue Aug 24, 2024 · 2 comments
Open

搜索关键词的空格的编码(' '或'+') 影响搜索结果 #11

kafovin opened this issue Aug 24, 2024 · 2 comments

Comments

@kafovin
Copy link

kafovin commented Aug 24, 2024

搜索关键词的空格的编码会影响搜索结果。
例如 (空格)、+%20

/music hello adele
图片

/music hello+adele
图片

/music hello%20adele
图片

有个小众一点的歌曲我这边只有用+能搜索到,不过不知道api那边、以及代码里面时怎么处理这部分编码的。
感觉这里可以优化一下~~

@shangxueink
Copy link
Collaborator

你可以使用

/music “hello adele”

用双引号引起来的内容,在koishi指令里视为一个参数

@shangxueink
Copy link
Collaborator

但是看起来你要点的就是

歌曲名称:hello 
作者:adele

()


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants