mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 13:57:10 +00:00
fix: 修复必应画图多余的svg
This commit is contained in:
parent
2f1c3317f4
commit
5f23d97bb3
1 changed files with 4 additions and 1 deletions
|
|
@ -113,7 +113,10 @@ export default class BingDrawClient {
|
||||||
// 很可能是微软内部error,重试即可
|
// 很可能是微软内部error,重试即可
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
imageLinks = imageLinks.map(link => link.split('?w=')[0]).map(link => link.replace('src="', ''))
|
imageLinks = imageLinks
|
||||||
|
.map(link => link.split('?w=')[0])
|
||||||
|
.map(link => link.replace('src="', ''))
|
||||||
|
.filter(link => !link.endsWith('.svg'))
|
||||||
imageLinks = [...new Set(imageLinks)]
|
imageLinks = [...new Set(imageLinks)]
|
||||||
const badImages = [
|
const badImages = [
|
||||||
'https://r.bing.com/rp/in-2zU3AJUdkgFe7ZKv19yPBHVs.png',
|
'https://r.bing.com/rp/in-2zU3AJUdkgFe7ZKv19yPBHVs.png',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue