perf: 优化代码,避免录像下载异常

This commit is contained in:
Eric
2024-03-29 11:14:36 +08:00
committed by Bryan
parent d3d89b0853
commit 4470b68de9

View File

@@ -12,7 +12,7 @@ class ReplayStorageHandler(BaseStorageHandler):
# 获取外部存储路径名
session_path = self.obj.find_ok_relative_path_in_storage(storage)
if not session_path:
return None
return None, None
# 通过外部存储路径名后缀,构造真实的本地存储路径
return session_path, self.obj.get_local_path_by_relative_path(session_path)