Commit 0130c085 authored by liyuanhong's avatar liyuanhong

M500模拟器增加了数据补报功能

parent cc2e2149
{"time": {"dateTime": "2020-07-30 10:17:57", "date": "2020-07-30", "time": "10:17:57"}, "curDayTravel": {"todayTotalMilleage": 2981, "todayTotalOil": 206, "todayTotalTime": 185, "theMilleage": 2981, "theOil": 206, "theTime": 185}, "travelData": {"totalMilleage": 129666, "totalOil": 11329, "totalTime": 7960}}
\ No newline at end of file
{"time": {"dateTime": "2020-07-30 10:17:57", "date": "2020-07-30", "time": "10:17:57"}, "curDayTravel": {"todayTotalMilleage": 4261, "todayTotalOil": 286, "todayTotalTime": 265, "theMilleage": 1280, "theOil": 80, "theTime": 80}, "travelData": {"totalMilleage": 130946, "totalOil": 11409, "totalTime": 8040}}
\ No newline at end of file
{"time": {"dateTime": "2020-07-30 10:05:57", "date": "2020-07-30", "time": "10:05:57"}, "curDayTravel": {"todayTotalMilleage": 4454, "todayTotalOil": 284, "todayTotalTime": 278, "theMilleage": 3075, "theOil": 195, "theTime": 192}, "travelData": {"totalMilleage": 638772, "totalOil": 56232, "totalTime": 38492}, "event": {"threeRapid": {"totalRapidlyAccelerate": 55, "totalSharpSlowdown": 44, "totalSharpTurn": 46}}}
\ No newline at end of file
{"time": {"dateTime": "2020-07-30 10:05:57", "date": "2020-07-30", "time": "10:05:57"}, "curDayTravel": {"todayTotalMilleage": 4796, "todayTotalOil": 311, "todayTotalTime": 299, "theMilleage": 259, "theOil": 19, "theTime": 16}, "travelData": {"totalMilleage": 639114, "totalOil": 56259, "totalTime": 38513}, "event": {"threeRapid": {"totalRapidlyAccelerate": 55, "totalSharpSlowdown": 44, "totalSharpTurn": 46}}}
\ No newline at end of file
This diff is collapsed.
......@@ -42,7 +42,7 @@
<a href="#" class="btn btn-default" role="button" id="ctrArea2" onclick="ctrAreaShow(this)">轨迹工具</a>
<a href="#" class="btn btn-default" role="button" id="ctrArea3" onclick="ctrAreaShow(this)">其他工具</a>
</div>
<div id="ctrArea_1" style="width:400px;height:175px;background:white;z-index:50;position:absolute;top:160px;right:40px;border-radius:5px;display:none;" class="btn-group btn-group-justified" role="group">
<div id="ctrArea_1" style="width:400px;height:200px;background:white;z-index:50;position:absolute;top:160px;right:40px;border-radius:5px;display:none;" class="btn-group btn-group-justified" role="group">
<div style="border-width: 1px;border-bottom: 1px solid #eee;margin: 10px;padding-bottom: 5px;">
<label>经 ,纬 度 :</label><input id="toLngLat" type="text" class="form-control" value="106.54041,29.40268" style="width:200px;">
<button type="button" class="btn btn-default" onclick="setposition()">定位</button>
......
......@@ -16,6 +16,7 @@ import json
import traceback
from lib.socket.service.ProtocolSimulaterService import ProtocolSimulaterService
from lib.util import fileUtil
from lib.util.DelaySend import DelaySend
M_carSimulater_process = Blueprint('M_carSimulater_process', __name__)
......@@ -133,6 +134,14 @@ def login():
versionMsg = versionObj.generateVersionMsg()
service.serviceSendMsg(versionMsg,"版本")
service.setSn(service.getSn() + 1)
# 数据补报
if(os.path.exists("data/protocolTools/sendMsg/" + params["carId"])):
ds = DelaySend(params["carId"], service)
ds.sendDelayMsgs()
else:
pass
data["status"] = "200"
data["message"] = "登录成功!"
except BaseException as e:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment