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
a640dd1c
Commit
a640dd1c
authored
Aug 06, 2025
by
baiquan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor(service): 调整登录页面加载时机
- 将登录页面的加载提前至循环判断中,确保页面在检查浏览器状态之前已经打开 - 修改判断条件,增加对页面 URL 的检查,确保登录页面已完全加载
parent
0843d242
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
service/page_login.py
+2
-2
No files found.
service/page_login.py
View file @
a640dd1c
...
...
@@ -39,7 +39,8 @@ async def page_login(browser_id):
port
=
data
.
get
(
'debuggingPort'
,
''
)
chromium
=
Chromium
(
f
"127.0.0.1:{port}"
)
tab
=
chromium
.
latest_tab
if
chromium
.
states
.
is_existed
:
tab
.
get
(
'https://fxg.jinritemai.com/login/common'
)
if
chromium
.
states
.
is_existed
and
"https://fxg.jinritemai.com"
in
tab
.
url
:
break
else
:
tab
.
close
()
...
...
@@ -51,7 +52,6 @@ async def page_login(browser_id):
if
open_count
==
0
:
raise
AppError
(
f
"{browser_id}-->启动浏览器失败"
)
tab
.
get
(
'https://fxg.jinritemai.com/login/common'
)
tab
.
listen
.
start
([
"account_login/v2/"
,
"captcha/verify"
,
"/aff/check_login"
,
"/loginv1/callback"
])
login_res
=
listen_check_login
(
tab
)
logger
.
info
(
f
"{browser_id}当前页面是否登录-->{login_res}"
)
...
...
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