good version for web
This commit is contained in:
@@ -235,7 +235,7 @@ class DataManager:
|
||||
def get_media_file(self, file_path: str) -> Optional[bytes]:
|
||||
"""获取媒体文件内容"""
|
||||
try:
|
||||
content = file_storage.download_file(file_path)
|
||||
content = file_storage.get_object(file_path)
|
||||
return content
|
||||
except Exception as e:
|
||||
logger.error(f"Error getting media file: {str(e)}")
|
||||
|
||||
Reference in New Issue
Block a user