-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from Well2333/main
🚑 修复二维码登录错误
- Loading branch information
Showing
3 changed files
with
28 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import asyncio | ||
|
||
from bilireq.login import Login | ||
|
||
PHONE_NUM = 1 | ||
PASSWD = 1 | ||
|
||
|
||
async def main(): | ||
print("===== 二维码登录 =====") | ||
login = Login() | ||
image = await login.get_qrcode() | ||
image.show() # type: ignore | ||
await login.qrcode_login(interval=5) | ||
|
||
# print("===== 验证码登录 =====") # 不可用 | ||
# login = Login() | ||
# await login.send_sms(PHONE_NUM) | ||
# await login.sms_login(input("请输入验证码: ")) | ||
|
||
# print("==== 账号密码登录 ====") # 不可用 | ||
# login = Login() | ||
# await login.pwd_login(str(PHONE_NUM), PASSWD) | ||
|
||
|
||
asyncio.run(main()) |