From 47483ce64e43550e0f072b505346b6878bf02afa Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Thu, 26 Mar 2020 11:13:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=86=E9=A2=91=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../weapps/courses/course_videos.json.jbuilder | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/app/views/weapps/courses/course_videos.json.jbuilder b/app/views/weapps/courses/course_videos.json.jbuilder index 12e1d514c..bca028c47 100644 --- a/app/views/weapps/courses/course_videos.json.jbuilder +++ b/app/views/weapps/courses/course_videos.json.jbuilder @@ -1,15 +1,4 @@ json.count @count json.videos @videos do |video| - #json.partial! 'users/videos/video', locals: { video: video } - json.extract! video, :id, :title, :cover_url, :file_url, :play_url, :vv, :user_id, :transcoded - #json.play_url url_base64_encode(video.play_url) - #json.file_url url_base64_encode(video.file_url) - json.play_duration video.video_play_duration - json.published_at video.display_published_at - json.created_at video.display_created_at - json.updated_at video.display_updated_at - user = video.user - json.user_name user&.real_name - json.user_img url_to_avatar(user) - json.user_login user&.login + json.partial! 'users/videos/video', locals: { video: video } end \ No newline at end of file