mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-31 06:46:24 +00:00
perf: 优化代码,避免录像下载异常
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user