Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
doudian-py
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
baiquan
doudian-py
Commits
b2112e42
Commit
b2112e42
authored
Jul 15, 2025
by
baiquan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化hub浏览器关闭逻辑
parent
3bfdacdc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
service/page_login.py
+3
-3
No files found.
service/page_login.py
View file @
b2112e42
...
@@ -60,12 +60,12 @@ async def page_login(browser_id):
...
@@ -60,12 +60,12 @@ async def page_login(browser_id):
if
not
login_res
:
if
not
login_res
:
retry
=
0
retry
=
0
while
True
:
while
True
:
if
retry
>=
3
:
tab
.
close
()
raise
AppError
(
f
"重试多次,登录失败"
)
if
retry
==
4
:
if
retry
==
4
:
tab
.
close
()
tab
.
close
()
raise
AppError
(
f
"未找到账号信息"
)
raise
AppError
(
f
"未找到账号信息"
)
if
retry
>=
3
:
tab
.
close
()
raise
AppError
(
f
"重试多次,登录失败"
)
retry
+=
1
retry
+=
1
try
:
try
:
em
=
"邮箱登录"
em
=
"邮箱登录"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment