update : 01.07.2025 17:50:09,07
This commit is contained in:
parent
1afc7a697d
commit
60563f554b
16
start.py
16
start.py
@ -44,6 +44,10 @@ from apps.gto.models.model_tracking import EquipmentTracking
|
||||
from apps.gto.models.model_type_sensor import TypeSensor
|
||||
from apps.schedulers import tasks
|
||||
from apps.seismicproc.models.model_earthquake import Earthquake
|
||||
|
||||
|
||||
from apps.workerslocation.models.workers_locations import WorkersLocation
|
||||
|
||||
from sabron.util import logging
|
||||
|
||||
|
||||
@ -277,14 +281,16 @@ def test_hetonis():
|
||||
session = requests.Session()
|
||||
Headers = { "accept" : "application/json","Content-type":"application/json" }
|
||||
response=session.post("http://10.91.15.2:8081/hxzkuwb/login/",data=json.dumps(data),headers = Headers, verify=False)
|
||||
print(response.text)
|
||||
print(session.cookies.get_dict())
|
||||
#print(response.text)
|
||||
#print(session.cookies.get_dict())
|
||||
print('************************************************')
|
||||
Headers = { "accept" : "application/json","Content-type":"application/json" }
|
||||
response=session.post("http://10.91.15.2:8081/hxzkuwb/getGPSCesium/",data=json.dumps(data),headers = Headers, verify=False)
|
||||
print(response.text)
|
||||
|
||||
|
||||
#print(response.text)
|
||||
data_response = response.json()
|
||||
for data in data_response:
|
||||
print(data)
|
||||
#WorkersLocation
|
||||
except Exception as err:
|
||||
print(traceback.format_exc())
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user