Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
integrated-scheduling-v3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
张晓彤
integrated-scheduling-v3
Commits
043eeac5
Commit
043eeac5
authored
Nov 15, 2022
by
张晓彤
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
7d2bf082
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
util.py
core/util.py
+3
-2
No files found.
core/util.py
View file @
043eeac5
...
...
@@ -9,7 +9,7 @@
import
requests
from
tables
import
*
with
open
(
json_file
)
as
f
:
config
=
json
.
load
(
f
)
mysql_config
=
json
.
load
(
f
)[
"mysql"
]
# def redispatch_request(truck_id, excavator_id, unload_area_id):
...
...
@@ -98,7 +98,7 @@ def POST(truck_id):
:param real_data:
:return:
"""
url_d
=
"http://"
+
config
[
"host"
]
+
":8020/ht/api/dispatch/updateTemp?truckId="
+
truck_id
url_d
=
"http://"
+
mysql_
config
[
"host"
]
+
":8020/ht/api/dispatch/updateTemp?truckId="
+
truck_id
res_d
=
requests
.
get
(
url_d
)
print
(
res_d
.
text
)
return
res_d
.
text
\ No newline at end of file
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