chore: remove the uneed console.log.
This commit is contained in:
parent
a9aaecc002
commit
81478ba67f
@ -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;
|
||||
});
|
||||
|
||||
|
@ -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];
|
||||
});
|
||||
|
||||
|
@ -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' },
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user