feat: 单url上传支持api-key验证2

This commit is contained in:
chaos-zhu committed 2026-02-02 22:23:42 +08:00
1 parent 6c85fd5c48
commit 84f4ae71b7
1 file changed
+3 -2
+3 -2
View File
@@ -229,8 +229,9 @@ export default defineEventHandler(async (event) => {
// 如果需要返回 base64
if (returnBase64) {
const base64 = processedBuffer.toString('base64')
const mimeType = `image/${finalFormat === 'jpg' ? 'jpeg' : finalFormat}`
responseData.base64 = `data:${mimeType};base64,${base64}`
// const mimeType = `image/${finalFormat === 'jpg' ? 'jpeg' : finalFormat}`
// responseData.base64 = `data:${mimeType};base64,${base64}`
responseData.base64 = base64
}
return {