Commit f5619885 authored by liyuanhong's avatar liyuanhong

M500模拟器,修复了事件上报的UTC时间不对问题

parent 2b42d4f3
......@@ -45,6 +45,10 @@ class EventReport_protocol(ProtocolBase):
self.securityData = securityData
event = data["event"]
self.event = event
timeStamp = time.time() - 8 * 3600
timeArray = time.localtime(timeStamp)
curTime = time.strftime("%Y-%m-%d %H:%M:%S", timeArray)
gpsInfo["UTCTime"] = curTime
self.GPSPkg = GPSReport_protocol(1,self.WATER_CODE,self.DEV_ID,gpsInfo["UTCTime"],gpsInfo["latitude"],gpsInfo["longitude"] \
,gpsInfo["speed"],gpsInfo["directionAngle"],gpsInfo["elevation"],gpsInfo["positionStar"],gpsInfo["Pdop"] \
,gpsInfo["Hdop"],gpsInfo["Vdop"],gpsInfo["statusBit"],gpsInfo["valtage"],gpsInfo["OBDSpeed"],gpsInfo["engineSpeed"] \
......
......@@ -1314,7 +1314,7 @@ def sendRapidChangeLeftLanes():
# 打印异常信息
traceback.print_exc()
data["status"] = "4003"
data["message"] = "Error: 发送急左变道告警事件失败!"
data["message"] = "Error: 发送怠速解除告警事件失败!"
return Response(json.dumps(data), mimetype='application/json')
##########################################
......
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