Commit 683cb800 authored by liyuanhong's avatar liyuanhong

修改了M500无法点火的功能

parent b38924ce
...@@ -136,7 +136,7 @@ class ProtocolSimulaterDataService(): ...@@ -136,7 +136,7 @@ class ProtocolSimulaterDataService():
self.data["time"]["dateTime"] = data self.data["time"]["dateTime"] = data
self.writeToFile(self.path + self.fileName,self.data) self.writeToFile(self.path + self.fileName,self.data)
#设今日日期 #设今日日期
def setData2file(self,data): def setDate2file(self,data):
self.data["time"]["date"] = data self.data["time"]["date"] = data
self.writeToFile(self.path + self.fileName,self.data) self.writeToFile(self.path + self.fileName,self.data)
#设今日时间 #设今日时间
......
...@@ -322,7 +322,7 @@ class ProtocolSimulaterService(): ...@@ -322,7 +322,7 @@ class ProtocolSimulaterService():
self.carDataObj.setTodayTodayTotalOil(0) self.carDataObj.setTodayTodayTotalOil(0)
self.carDataObj.setTodayTodayTotalTime(0) self.carDataObj.setTodayTodayTotalTime(0)
self.carDataObj.setDateTime2file(dateTimeM) self.carDataObj.setDateTime2file(dateTimeM)
self.carDataObj.setData2file(dateM) self.carDataObj.setDate2file(dateM)
self.carDataObj.setTime2file(timeM) self.carDataObj.setTime2file(timeM)
self.OBDdata["totailMileage"] = conJson["travelData"]["totalMilleage"] self.OBDdata["totailMileage"] = conJson["travelData"]["totalMilleage"]
self.OBDdataOri["totailMileage"] = conJson["travelData"]["totalMilleage"] self.OBDdataOri["totailMileage"] = conJson["travelData"]["totalMilleage"]
......
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