Skip to content

Commit

Permalink
fix: 图片报错
Browse files Browse the repository at this point in the history
  • Loading branch information
XasYer committed Nov 20, 2024
1 parent 5986d03 commit 0a31520
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export function getHeaderImgUrlByAppid (appid) {
export async function getImgUrlBuffer (url) {
for (let i = 0; i < 3; i++) {
try {
const buffer = await request.get(url, { responseType: 'arraybuffer', baseUrl: '' })
const buffer = await request.get(url, { responseType: 'arraybuffer', baseUrl: '' }).then(res => res.data)
if (Version.BotName === 'Karin') {
return `base64://${buffer.toString('base64')}`
} else {
Expand Down

0 comments on commit 0a31520

Please sign in to comment.