mirror of
https://github.com/SocialSisterYi/bilibili-API-collect.git
synced 2025-02-09 18:50:11 +08:00
修复 nodejs 代码块 catch 中错误的变量名
This commit is contained in:
parent
e5fbfed428
commit
2dfece077a
@ -292,7 +292,7 @@ async function getBiliTicket(csrf) {
|
||||
const data = await response.json();
|
||||
return data;
|
||||
} catch (e) {
|
||||
throw error;
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
@ -301,7 +301,7 @@ async function getBiliTicket(csrf) {
|
||||
const ticketResponse = await getBiliTicket(''); // use empty CSRF here
|
||||
console.log(ticketResponse);
|
||||
} catch (e) {
|
||||
console.error('Failed to get BiliTicket:', error);
|
||||
console.error('Failed to get BiliTicket:', e);
|
||||
}
|
||||
})();
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user