This commit is contained in:
xyj 2023-12-14 09:54:38 +08:00
parent c1bf65f9d3
commit 3ab0ddc2db
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ class MQTTClient:
# git更新项目和配置文件
update(client)
elif data == "reload":
# git更新项目和配置文件
# 重启配置
reload(client)
elif data == "record_list":
# 查看录像列表

View File

@ -68,8 +68,8 @@ def update(client):
def reload(client):
subprocess.Popen(['supervisorctl reload'], shell=True)
client.publish('success', payload="reloading", qos=0)
subprocess.Popen(['supervisorctl reload'], shell=True)
def get_list_record():