mirror of https://github.com/jumpserver/jumpserver
				
				
				
			fix: 解决录像无法在线观看的问题
							parent
							
								
									24272d3162
								
							
						
					
					
						commit
						3604ef4228
					
				|  | @ -212,7 +212,7 @@ class SessionReplayViewSet(AsyncApiMixin, viewsets.ViewSet): | |||
| 
 | ||||
|         storage = ReplayStorageHandler(session) | ||||
|         local_path, url_or_err = storage.get_file_path_url() | ||||
|         if url_or_err: | ||||
|         if local_path is None: | ||||
|             return Response({"error": url_or_err}, status=404) | ||||
|         data = self.get_replay_data(session, url_or_err) | ||||
|         return Response(data) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 jiangweidong
						jiangweidong