koishi-plugin-bilitester 1.6.3 → 1.6.4

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.
Files changed (2) hide show
  1. package/lib/index.js +3 -0
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -361,6 +361,9 @@ function apply(ctx, config) {
361
361
  return '您还未登录哔哩哔哩账号,请使用 "bilitester login" 进行登录';
362
362
  }
363
363
  const acc = account[0];
364
+ if (!acc) {
365
+ return '账号信息加载失败,请重新登录';
366
+ }
364
367
  const vipStatusText = acc.vipStatus === 1 ? '是' : '否';
365
368
  const vipTypeText = acc.vipType === 0 ? '无' : acc.vipType === 1 ? '月度' : '年度';
366
369
  return `哔哩哔哩账号信息:\n` +
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "koishi-plugin-bilitester",
3
- "version": "1.6.3",
3
+ "version": "1.6.4",
4
4
  "description": "哔哩哔哩登录和API调用插件,支持二维码登录和Cookie管理",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",