koishi-plugin-bilitester 1.5.10 → 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.
- package/lib/index.js +3 -0
- 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` +
|