mqtt
This commit is contained in:
parent
35508548ee
commit
d4b6033aea
2
tool.py
2
tool.py
|
@ -45,7 +45,7 @@ def get_record(msg, client):
|
||||||
int(date_str[8:10]), int(time_str[:2]),
|
int(date_str[8:10]), int(time_str[:2]),
|
||||||
int(time_str[3:5]))
|
int(time_str[3:5]))
|
||||||
# 比较文件时间和创建时间
|
# 比较文件时间和创建时间
|
||||||
if file_time > create_time_:
|
if file_time == create_time_:
|
||||||
file_name_ = filename
|
file_name_ = filename
|
||||||
if file_name_ == '':
|
if file_name_ == '':
|
||||||
client.publish('error', payload='没有该文件', qos=0)
|
client.publish('error', payload='没有该文件', qos=0)
|
||||||
|
|
Loading…
Reference in New Issue