|  |  |  | @ -18,9 +18,7 @@ class Videos::DispatchCallbackService < ApplicationService | 
			
		
	
		
			
				
					|  |  |  |  |       video.save! | 
			
		
	
		
			
				
					|  |  |  |  |     when 'SnapshotComplete' then # 封面截图完成 | 
			
		
	
		
			
				
					|  |  |  |  |       return if video.cover_url.present? | 
			
		
	
		
			
				
					|  |  |  |  |       result = AliyunVod::Service.get_play_info(video.uuid) rescue nil | 
			
		
	
		
			
				
					|  |  |  |  |       play_url = result['PlayInfoList']['PlayInfo'][0]['PlayURL'] if result | 
			
		
	
		
			
				
					|  |  |  |  |       video.update!(cover_url: params['CoverUrl'],play_url: play_url) | 
			
		
	
		
			
				
					|  |  |  |  |       video.update!(cover_url: params['CoverUrl']) | 
			
		
	
		
			
				
					|  |  |  |  |     when 'StreamTranscodeComplete' then # 转码完成 | 
			
		
	
		
			
				
					|  |  |  |  |       #return if video.play_url.present? | 
			
		
	
		
			
				
					|  |  |  |  |       video.update!(play_url: params['FileUrl'], transcoded: true) | 
			
		
	
	
		
			
				
					|  |  |  | 
 |