删除视频处理

courseware
anke1460 5 years ago
parent 4409448a62
commit 8f251e4bc6

@ -53,7 +53,7 @@ class Video < ApplicationRecord
run_callbacks(:destroy) do
if persisted?
update_column(:delete_state, Video::BEGIN_DELETE)
AliyunVod::Service.delete_video([self.uuid])
# result = AliyunVod::Service.delete_video([self.uuid])
# if result && result['RequestId']
# update_column(:delete_state, Video::FINISH_DELETE)

Loading…
Cancel
Save