added base image to pro

This commit is contained in:
Harry Bomrah 2016-05-25 17:51:34 +08:00
parent d48297e36f
commit 428328696a
1 changed files with 2 additions and 0 deletions

View File

@ -38,12 +38,14 @@ class AdBannersController < ApplicationController
} }
end end
end end
base_image = adbanner.base_image.nil? ? 1 : adbanner.base_image
{ {
"extras" => { "extras" => {
"ad_fx" => adbanner.ad_fx, "ad_fx" => adbanner.ad_fx,
"speed" => adbanner.speed, "speed" => adbanner.speed,
"title" => adbanner.title, "title" => adbanner.title,
"timeout" => adbanner.timeout, "timeout" => adbanner.timeout,
"base_image" => (base_image - 1),
"more" => "More" "more" => "More"
}, },
"images" => images "images" => images