koishijs / koishi-plugin-image-search

图片搜索,支持 saucenao, ascii2d 等多个平台
MIT License
9 stars 6 forks source link

[Bug] QQ Url 方式搜图时部分链接可能会被阻止引用的问题 #30

Open SummonHIM opened 2 months ago

SummonHIM commented 2 months ago

假设获取的链接为

http://gchat.qpic.cn/offpic_new/xxx//xxx-xxx-xxx/0?term=255&is_origin=1

搜索有可能会触发腾讯的非法引用图片,导致搜索结果不准确 image

可能的解决方案

Tsuk1ko/cq-picsearcher-bot/src/index.mjs#L973

上面那个链接存在//,转换成gchatpic_new链接可能会出现400错误。