This repository has been archived by the owner on Aug 15, 2023. It is now read-only.
Replies: 3 comments 14 replies
-
oicq 没看懂这个要什么事件调用 submitSmsCode |
Beta Was this translation helpful? Give feedback.
0 replies
-
这个发短信登录,是密码登录,还是扫码登录下的 |
Beta Was this translation helpful? Give feedback.
4 replies
-
老大哥,你自己试一下,我试不了 diff --git a/bot.js b/bot.js
index 771f2fbe..7b97c979 100644
--- a/bot.js
+++ b/bot.js
@@ -129,6 +129,15 @@ async function run() {
});
}
+ bot.on("system.login.device", () => {
+ bot.logger.mark("输入密保手机收到的短信验证码后按下回车键继续。");
+ bot.sendSmsCode();
+ process.stdin.once("data", (input) => {
+ bot.submitSmsCode(input.toString());
+ resolve();
+ });
+ });
+
bot.login(bot.account.password);
});
} |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
扫码验证要鉴权,寄了
Beta Was this translation helpful? Give feedback.
All reactions