chore: remove the uneed console.log.

This commit is contained in:
Yufan Sheng 2024-06-23 23:12:57 +08:00
parent c37ce2b820
commit 9d8641e3f4
Signed by: syhily
GPG Key ID: 9D18A22A7DCD5A9B
3 changed files with 3 additions and 4 deletions

View File

@ -26,7 +26,7 @@ export const loadComments = async (key: string, title: string | null, offset: nu
const data = await fetch(urlJoin(server, `/api/v2/comments?${querystring.stringify(params)}`))
.then((response) => response.json())
.catch((e) => {
console.log(e);
console.error(e);
return null;
});
@ -44,7 +44,7 @@ export const createComment = async (req: CommentReq): Promise<ErrorResp | Commen
},
body: JSON.stringify({ ...req, site_name: options.title, rid: req.rid ? Number(req.rid) : 0 }),
}).catch((e) => {
console.log(e);
console.error(e);
return null;
});

View File

@ -24,7 +24,7 @@ const song = async (props: MusicPlayerProps): Promise<Song> => {
const data = await fetch(`https://api.injahow.cn/meting/?type=song&id=${netease}`)
.then((response) => response.json())
.catch((e) => {
console.log(e);
console.error(e);
return [emptySong];
});

View File

@ -16,7 +16,6 @@ const avatarImage = async (hash: string): Promise<Response> => {
options.settings.comments.avatar.mirror,
`${hash}.png?s=${options.settings.comments.avatar.size}&d=${defaultAvatar()}`,
);
console.log(link);
return new Response(Buffer.from(await (await fetch(link)).arrayBuffer()), {
headers: { 'Content-Type': 'image/png' },
});