Commit 4134292e authored by liyuanhong's avatar liyuanhong

修改了定时无效的bug2

parent 736b7e4b
Pipeline #139 canceled with stages
{"time": {"dateTime": "2020-04-22 15:12:03", "date": "2020-04-22", "time": "15:12:03"}, "curDayTravel": {"todayTotalMilleage": 8492, "todayTotalOil": 772, "todayTotalTime": 386, "theMilleage": 13288, "theOil": 1208, "theTime": 604}, "travelData": {"totalMilleage": 13288, "totalOil": 1208, "totalTime": 604}}
\ No newline at end of file
{"time": {"dateTime": "2020-04-22 15:12:03", "date": "2020-04-22", "time": "15:12:03"}, "curDayTravel": {"todayTotalMilleage": 14894, "todayTotalOil": 1354, "todayTotalTime": 677, "theMilleage": 19690, "theOil": 1790, "theTime": 895}, "travelData": {"totalMilleage": 19690, "totalOil": 1790, "totalTime": 895}}
\ No newline at end of file
......@@ -439,7 +439,7 @@ class AutoCarTimerService():
info = "[" + datetime + "]" + " 启动了模拟程序"
self.writeToFile("result.txt", info, 0)
while True:
if self.isTimerStart(year=0,month=0,day=0,hour=0,minute=0,second=2):
if self.isTimerStart(year,month,day,hour,minute,second):
self.connectService()
# self.startRevService() #启动接收消息服务
self.sendLoginMsg()
......
This diff is collapsed.
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