koishi-plugin-bilibili-notify 1.2.3-rc.4 → 1.2.3-rc.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/biliAPI.js +4 -1
- package/package.json +1 -1
- package/readme.md +1 -0
package/lib/biliAPI.js
CHANGED
|
@@ -216,8 +216,11 @@ class BiliAPI extends koishi_1.Service {
|
|
|
216
216
|
// Get login info from db
|
|
217
217
|
const { cookies, refresh_token } = await this.getLoginInfoFromDB();
|
|
218
218
|
// 判断是否有值
|
|
219
|
-
if (!cookies || !refresh_token)
|
|
219
|
+
if (!cookies || !refresh_token) {
|
|
220
|
+
// Login info is loaded
|
|
221
|
+
this.loginInfoIsLoaded = true;
|
|
220
222
|
return;
|
|
223
|
+
}
|
|
221
224
|
// 定义CSRF Token
|
|
222
225
|
let csrf;
|
|
223
226
|
cookies.forEach(cookieData => {
|
package/package.json
CHANGED