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