This commit is contained in:
BoHung Chiu 2022-05-19 09:52:23 +08:00
parent e19a2ee59b
commit 59a8b96c89
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ class AdBannersController < ApplicationController
video_url = ad_b.video_file.url rescue nil
video_webm_url = ad_b.video_file_webm.url rescue nil
@file_poster = ad_b.video_snapshot.url rescue nil
title = (ad_b.title.blank? ? File.basename(ad_b.video_file) : ad_b.title)
title = (ad_b.title.blank? ? File.basename(video_url) : ad_b.title)
image_html = "<div class=\"w-ad-banner__slide w-ba-banner__slide #{klass} jplayer_slide\"
data-link=\"#{ad_b.out_link || "#"}'\"
data-cycle-title=\"#{ad_b.title}\"