1. NVR Status 但对象初始化失败时返回false

This commit is contained in:
kunmeng
2025-05-21 09:40:32 +08:00
parent 311e694a89
commit 77bb351161
2 changed files with 3 additions and 1 deletions

3
Nvr.go
View File

@@ -167,6 +167,9 @@ func (this *Nvr) Logout() error {
}
func (this *Nvr) Status() bool {
if this == nil {
return false
}
return Core.NET_DVR_RemoteControl(this.userId)
}