dev_video
cxt 5 years ago
parent 47e97f57f2
commit 41484e9a9e

@ -45,7 +45,6 @@ module AliyunVod::Service::VideoManage
VideoId: video_id,
StartTime: start_time,
EndTime: end_time,
Interval: 'day'
}.merge(base_params)
puts params

@ -33,11 +33,10 @@ namespace :video do
task :sample => :environment do
if ENV['args']
video_id = ENV['args'].split(",")[0]
start_time = ENV['args'].split(",")[1].to_s.to_time.utc # 表示参与人数
end_time = ENV['args'].split(",")[2].to_s.to_time.utc # 表示通过人数
start_time = ENV['args'].split(",")[1].to_s.to_time.utc.strftime('%Y-%m-%dT%H:%M:%SZ') # 表示参与人数
end_time = ENV['args'].split(",")[2].to_s.to_time.utc.strftime('%Y-%m-%dT%H:%M:%SZ') # 表示通过人数
video=Video.find video_id
data = AliyunVod::Service.video_data(video.uuid, start_time, end_time)
puts data

Loading…
Cancel
Save