wechaty / puppet-whatsapp

Wechaty Puppet for Whatsapp
https://npmjs.com/package/wechaty-puppet-whatsapp
Apache License 2.0
24 stars 17 forks source link

启动whatsapp后,第一次扫瞄二维码后,未成功登录,会继续接收一个新的二维码,再次扫码后才能登录。 #345

Closed su-chang closed 2 years ago

su-chang commented 2 years ago

通过二维码链接信息可以观察到第二个二维码比第一个二维码包含更多信息。

关键日志

10:52:18 INFO PuppetWhatsapp SCAN https://wechaty.js.org/qrcode/1@H6uuwcAdKQORRw1AcZvum8OVbJsZGji29Li0UK9zVtHSsO3/zGEvXrzB3t5ec97iP2b5l/IKMZMp7Q==,zXNCJPWVjjx70JNIAKNynh016yJLIdXejulOovL9CF4=,7lnjmi1DpvHnVspx2I3HRA==
10:52:21 INFO PuppetWhatsapp SCAN https://wechaty.js.org/qrcode/2@3RRoV+T7pgoxbgMK4FYzMQeVqC+/cDOS5wNOn+pbcZp5nfbd/+hyj6bUPaMZm9RKs+v4b3gy1Q4scA==,mjr3/M2z7uOoK5ZRHrzfNwgogZQBskBCTak6ikttexs=,GlX5BDOvpqpXBWffFwt7E4WetqRV8poq1UDpeCLDg0U=,zXXM8OOKFm0dO5Xy8SCT0uBnrsOP8/EGv5G55FBzl3A=

详细日志

10:52:18 INFO LoginEventHandler onQRCode(1@H6uuwcAdKQORRw1AcZvum8OVbJsZGji29Li0UK9zVtHSsO3/zGEvXrzB3t5ec97iP2b5l/IKMZMp7Q==,zXNCJPWVjjx70JNIAKNynh016yJLIdXejulOovL9CF4=,7lnjmi1DpvHnVspx2I3HRA==)
10:52:18 VERB PuppetWhatsapp onScan({"qrcode":"1@H6uuwcAdKQORRw1AcZvum8OVbJsZGji29Li0UK9zVtHSsO3/zGEvXrzB3t5ec97iP2b5l/IKMZMp7Q==,zXNCJPWVjjx70JNIAKNynh016yJLIdXejulOovL9CF4=,7lnjmi1DpvHnVspx2I3HRA==","status":2})
10:52:18 INFO PuppetWhatsapp SCAN https://wechaty.js.org/qrcode/1@H6uuwcAdKQORRw1AcZvum8OVbJsZGji29Li0UK9zVtHSsO3/zGEvXrzB3t5ec97iP2b5l/IKMZMp7Q==,zXNCJPWVjjx70JNIAKNynh016yJLIdXejulOovL9CF4=,7lnjmi1DpvHnVspx2I3HRA==
Scan QR Code above to log in: 
10:52:21 INFO LoginEventHandler onQRCode(2@3RRoV+T7pgoxbgMK4FYzMQeVqC+/cDOS5wNOn+pbcZp5nfbd/+hyj6bUPaMZm9RKs+v4b3gy1Q4scA==,mjr3/M2z7uOoK5ZRHrzfNwgogZQBskBCTak6ikttexs=,GlX5BDOvpqpXBWffFwt7E4WetqRV8poq1UDpeCLDg0U=,zXXM8OOKFm0dO5Xy8SCT0uBnrsOP8/EGv5G55FBzl3A=)
10:52:21 VERB PuppetWhatsapp onScan({"qrcode":"2@3RRoV+T7pgoxbgMK4FYzMQeVqC+/cDOS5wNOn+pbcZp5nfbd/+hyj6bUPaMZm9RKs+v4b3gy1Q4scA==,mjr3/M2z7uOoK5ZRHrzfNwgogZQBskBCTak6ikttexs=,GlX5BDOvpqpXBWffFwt7E4WetqRV8poq1UDpeCLDg0U=,zXXM8OOKFm0dO5Xy8SCT0uBnrsOP8/EGv5G55FBzl3A=","status":2})
10:52:21 INFO PuppetWhatsapp SCAN https://wechaty.js.org/qrcode/2@3RRoV+T7pgoxbgMK4FYzMQeVqC+/cDOS5wNOn+pbcZp5nfbd/+hyj6bUPaMZm9RKs+v4b3gy1Q4scA==,mjr3/M2z7uOoK5ZRHrzfNwgogZQBskBCTak6ikttexs=,GlX5BDOvpqpXBWffFwt7E4WetqRV8poq1UDpeCLDg0U=,zXXM8OOKFm0dO5Xy8SCT0uBnrsOP8/EGv5G55FBzl3A=
Scan QR Code above to log in: 
10:52:32 INFO LoginEventHandler onAuthenticated(undefined)
10:52:32 INFO WhatsAppManager initWhatsAppEvents: "authenticated", value: undefined
10:52:32 VERB LoginEventHandler onWhatsAppReady()
10:52:32 INFO WhatsAppManager initWhatsAppEvents: "ready", value: undefined
su-chang commented 2 years ago

whatsapp官网目前也需要扫码两次才能登录 https://web.whatsapp.com/

origin_img_v2_275c1ac1-734d-49ce-b68e-81fe4595a6dg

image

huan commented 2 years ago

I confirmed that my two WhatsApp accounts need to scan twice before they can successfully link with the bot device.

su-chang commented 2 years ago

WhatsApp官方调整为仅需扫码一次即可登录。目前 puppet-whatsapp@1.19.4 版本可以仅通过扫码一次即可登录。