takayama-lily / oicq

Tencent QQ Bot Library for Node.js
https://oicqjs.github.io/oicq/
Mozilla Public License 2.0
2.67k stars 402 forks source link

第一次运行时,命令行二维码和目录下的png扫描登录都显示过期 #280

Open IcyFeather233 opened 2 years ago

IcyFeather233 commented 2 years ago

Node.js Version

16.13.1

Package Version

npm

Login Protocol

Android

Bug Description

不管是扫描命令行输出的二维码还是/home/xxx/oicq/data/xxx/qrcode.png都显示“二维码已过期,请更新后再试”

Log Details

No response

IcyFeather233 commented 2 years ago

发现ctrl + c然后重新运行又可以了,不知为什么。不过第一次运行确实有这个问题

Arondight commented 2 years ago

我试了几次,第一次打印的二维码必定过期

IcyFeather233 commented 2 years ago

好奇怪的Bug,要不加到文档里说明一下?我把这个issue Close掉

Arondight commented 2 years ago

好奇怪的Bug,要不加到文档里说明一下?我把这个issue Close掉

这个问题似乎要解决一下吧,改 oicq 的文档对于最终的 bot 使用者无用啊,我是三个号每次都是都会这样,第一次扫码必然失败,作者抽时间看看 @takayama-lily ?

Arondight commented 2 years ago

@IcyFeather233 这个 issue 是不是要 reopen 一下,这么关了不合适啊

IcyFeather233 commented 2 years ago

@IcyFeather233 这个 issue 是不是要 reopen 一下,这么关了不合适啊

已Reopen

Cloud370 commented 2 years ago

其实 再login刷新一次就好了 所以我都是刷新两次再扫

IcyFeather233 commented 2 years ago

其实 再login刷新一次就好了 所以我都是刷新两次再扫

我们知道,只是感觉这样不是很方便,如果有时间的话还是希望看看这个能不能解决一下

ghost commented 2 years ago

发现并不都是这样,貌似如果手速够快的话,第一次扫可以成功。