From 085a90ce3d73305b1f834e3601fa23524c0cfdad Mon Sep 17 00:00:00 2001 From: Benny Date: Sat, 26 Aug 2023 13:58:27 +0200 Subject: [PATCH] use webp cloud for douban image --- src/app/pages/resource/Info.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/pages/resource/Info.tsx b/src/app/pages/resource/Info.tsx index 9cb1cfd..79d5a28 100644 --- a/src/app/pages/resource/Info.tsx +++ b/src/app/pages/resource/Info.tsx @@ -153,6 +153,10 @@ export function Info(props: InfoPropTypes) { }; const classes = useStyles(); + const getDoubanPoster = () => { + const webpcloud = "https://3297e64.webp.ee"; + return `${webpcloud}/api/douban?resource_id=${id}&type=image`; + }; return (
@@ -201,7 +205,7 @@ export function Info(props: InfoPropTypes) {