From 41484e9a9e733ff97c555af0532a3e26f085c279 Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Thu, 6 Feb 2020 17:49:39 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/libs/aliyun_vod/service/video_manage.rb | 1 - lib/tasks/get_video_data.rake | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/libs/aliyun_vod/service/video_manage.rb b/app/libs/aliyun_vod/service/video_manage.rb index 2461d3781..02a4bac49 100644 --- a/app/libs/aliyun_vod/service/video_manage.rb +++ b/app/libs/aliyun_vod/service/video_manage.rb @@ -45,7 +45,6 @@ module AliyunVod::Service::VideoManage VideoId: video_id, StartTime: start_time, EndTime: end_time, - Interval: 'day' }.merge(base_params) puts params diff --git a/lib/tasks/get_video_data.rake b/lib/tasks/get_video_data.rake index ae12223a9..56af0a192 100644 --- a/lib/tasks/get_video_data.rake +++ b/lib/tasks/get_video_data.rake @@ -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