fix: 录像存储下载报错

This commit is contained in:
wangruidong
2023-11-14 15:49:47 +08:00
committed by Bryan
parent fef4a97931
commit ae364ac373
2 changed files with 11 additions and 6 deletions

View File

@@ -162,6 +162,10 @@ class ReplayStorage(CommonStorageModelMixin, JMSBaseModel):
def type_swift(self):
return self.type == const.ReplayStorageType.swift.value
@property
def type_sftp(self):
return self.type == const.ReplayStorageType.sftp.value
@property
def type_ceph(self):
return self.type == const.ReplayStorageType.ceph.value