1.自动删除最旧的录像文件的功能

2.增加字段用于区分record对象是自动的普通录像还是事件录像
3.修复自动录像时,订阅却订阅失败时会生成小文件的问题
This commit is contained in:
pg
2024-10-02 10:45:21 +08:00
parent b15c776865
commit 9b33cbd5db
13 changed files with 264 additions and 100 deletions

View File

@@ -18,7 +18,7 @@ func SendToThirdPartyAPI(exception *Exception) {
fmt.Println("Error marshalling exception:", err)
return
}
err = mysqldb.Create(&exception).Error
err = db.Create(&exception).Error
if err != nil {
fmt.Println("异常数据插入数据库失败:", err)
return