|
|
@ -54,10 +54,6 @@ class Video < ApplicationRecord
|
|
|
|
if persisted?
|
|
|
|
if persisted?
|
|
|
|
update_column(:delete_state, Video::BEGIN_DELETE)
|
|
|
|
update_column(:delete_state, Video::BEGIN_DELETE)
|
|
|
|
AliyunVod::Service.delete_video([self.uuid])
|
|
|
|
AliyunVod::Service.delete_video([self.uuid])
|
|
|
|
# result = AliyunVod::Service.delete_video([self.uuid])
|
|
|
|
|
|
|
|
# if result && result['RequestId']
|
|
|
|
|
|
|
|
# update_column(:delete_state, Video::FINISH_DELETE)
|
|
|
|
|
|
|
|
# end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
@destroyed = true
|
|
|
|
@destroyed = true
|
|
|
|