Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
EMUAFactory
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mayinghao
EMUAFactory
Commits
3be2f814
Commit
3be2f814
authored
Sep 26, 2025
by
mayinghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改部分变量
parent
42d02498
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
12 deletions
+7
-12
thread_upload.py
multipleThread/thread_upload.py
+7
-12
No files found.
multipleThread/thread_upload.py
View file @
3be2f814
...
...
@@ -12,7 +12,7 @@ import uuid
from
oss2.models
import
PartInfo
from
.config
import
*
product_callback_url
=
"https://uat.emku.laidecloud.com/console/seller/getFiles.ajax"
callback_url
=
"https://uat.emku.laidecloud.com/console/productOrder/filePthSave.ajax"
def
nanoseconds_to_date
(
nano_seconds
):
timestamp
=
nano_seconds
/
1000
...
...
@@ -99,7 +99,7 @@ class Upload_Thread(QObject):
@
pyqtSlot
()
def
run
(
self
):
global
callback_url
print
(
"start upload thread"
)
key
=
self
.
filename
.
split
(
'/'
)[
-
1
]
extension
=
key
.
split
(
"."
)[
-
1
]
...
...
@@ -183,12 +183,9 @@ class Upload_Thread(QObject):
headers
=
{
'token'
:
self
.
token
,
'User-Agent'
:
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3"
}
if
self
.
type_info
>=
12
:
callback_url
=
goods_callback_url
try
:
response
=
requests
.
post
(
callback_url
,
data
=
datas
,
headers
=
headers
)
response
=
requests
.
post
(
goods_
callback_url
,
data
=
datas
,
headers
=
headers
)
res
=
response
.
json
()
print
(
res
[
"obj"
])
response
=
requests
.
post
(
product_callback_url
,
data
=
{
"id"
:
self
.
order_id
},
headers
=
headers
)
...
...
@@ -199,11 +196,9 @@ class Upload_Thread(QObject):
print
(
"wrong 1"
)
else
:
# try:
print
(
self
.
token
)
response
=
requests
.
post
(
"https://uat.emku.laidecloud.com/console/productOrder/filePthSave.ajax"
,
data
=
datas
,
headers
=
headers
)
res
=
response
.
json
()
print
(
res
[
"obj"
])
self
.
finishSignal
.
emit
()
response
=
requests
.
post
(
callback_url
,
data
=
datas
,
headers
=
headers
)
res
=
response
.
json
()
print
(
res
[
"obj"
])
self
.
finishSignal
.
emit
()
# except Exception as e:
# print("wrong 2")
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