bilive / bilive_client

基于Node.JS的bilibili账号活跃系统
MIT License
456 stars 108 forks source link

0418版本报错:appStatus is not defined #160

Closed Lozumi closed 4 years ago

Lozumi commented 4 years ago

Apr 19 2020 00:13:07 : Cookie已失效 (node:3484) UnhandledPromiseRejectionWarning: ReferenceError: appStatus is not defined at Online.refresh (C:\Users\Administrator\m\bilive_client\build\bilive\lib\tv_client.js:102:30) at process._tickCallback (internal/process/next_tick.js:68:7) (node:3484) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:3484) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

ShmilyChen commented 4 years ago

bilive\lib\tv_client.ts这个文件里面添加

enum appStatus {
  'success',
  'captcha',
  'error',
  'httpError',
}

image

然后重新编译

Lozumi commented 4 years ago

bilive\lib\tv_client.ts这个文件里面添加

enum appStatus {
  'success',
  'captcha',
  'error',
  'httpError',
}

image

然后重新编译

谢谢