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
a09f0d67
Commit
a09f0d67
authored
Jul 15, 2025
by
baiquan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化hub浏览器关闭逻辑
parent
252eed86
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
shop.py
+4
-6
utils/common.py
+1
-1
No files found.
shop.py
View file @
a09f0d67
...
...
@@ -201,12 +201,10 @@ async def run():
except
Exception
as
e
:
logger
.
error
(
f
"任务处理异常: {e}"
)
for
task
in
tasks
:
browser_id
=
task
.
get
(
"browser_id"
)
if
browser_id
:
await
closeBrowser
(
browser_id
)
# if task.get("type") == 1:
# await closeAllBrowser()
# break
if
type
(
task
)
==
dict
:
browser_id
=
task
.
get
(
"browser_id"
)
if
browser_id
:
await
closeBrowser
(
browser_id
)
if
__name__
==
'__main__'
:
...
...
utils/common.py
View file @
a09f0d67
...
...
@@ -220,7 +220,7 @@ async def get_task(params: dict = None):
tasks
=
[]
publish_task_data
=
publish_task
.
get
(
'data'
,
[])
collection_task_data
=
collection_task
.
get
(
'data'
,
[])
tasks
.
ext
end
(
publish_task_data
)
tasks
.
app
end
(
publish_task_data
)
tasks
.
extend
(
collection_task_data
)
collection_task
[
'data'
]
=
tasks
return
collection_task
...
...
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