Skip to content
This repository was archived by the owner on Nov 27, 2025. It is now read-only.

Commit e06ea55

Browse files
committed
修改使用jpeg图像源
1 parent fe2b661 commit e06ea55

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/api/controllers/images.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,11 @@ export async function generateImages(
237237
else
238238
throw new APIException(EX.API_IMAGE_GENERATION_FAILED);
239239
}
240-
return item_list.map((item) => item.common_attr.cover_url);
240+
return item_list.map((item) => {
241+
if(!item?.image?.large_images?.[0]?.image_url)
242+
return item?.common_attr?.cover_url || null;
243+
return item.image.large_images[0].image_url;
244+
});
241245
}
242246

243247
export default {

0 commit comments

Comments
 (0)