mirror of
https://github.com/SocialSisterYi/bilibili-API-collect.git
synced 2025-02-10 11:20:09 +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();
|
const data = await response.json();
|
||||||
return data;
|
return data;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
throw error;
|
throw e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -301,7 +301,7 @@ async function getBiliTicket(csrf) {
|
|||||||
const ticketResponse = await getBiliTicket(''); // use empty CSRF here
|
const ticketResponse = await getBiliTicket(''); // use empty CSRF here
|
||||||
console.log(ticketResponse);
|
console.log(ticketResponse);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error('Failed to get BiliTicket:', error);
|
console.error('Failed to get BiliTicket:', e);
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user