$banner_action
This commit is contained in:
@@ -468,6 +468,7 @@ class ResultFormatter extends Model
|
|||||||
for ($i = 0; $i < $total; $i++) {
|
for ($i = 0; $i < $total; $i++) {
|
||||||
$key = sprintf("%05d", $i);
|
$key = sprintf("%05d", $i);
|
||||||
$banner_action = $out["action_${key}"];
|
$banner_action = $out["action_${key}"];
|
||||||
|
/*
|
||||||
$res["result_list"][] =
|
$res["result_list"][] =
|
||||||
[$banner_action =>
|
[$banner_action =>
|
||||||
["banner" =>
|
["banner" =>
|
||||||
@@ -493,6 +494,30 @@ class ResultFormatter extends Model
|
|||||||
]
|
]
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
|
*/
|
||||||
|
$res["result_list"][$banner_action] =
|
||||||
|
["banner" =>
|
||||||
|
[
|
||||||
|
"text" => $out["title_${key}"],
|
||||||
|
"contract" => $out["contract_${key}"],
|
||||||
|
"card_type" => $out["card_type_${key}"],
|
||||||
|
"style" => $out["card_style_${key}"],
|
||||||
|
"description" => $out["description_${key}"],
|
||||||
|
"blog_id" => $out["blog_id_${key}"],
|
||||||
|
"card_icon" => $out["card_icon_${key}"],
|
||||||
|
"offer_id" => $out["offer_id_${key}"],
|
||||||
|
"image" => $this->fixEmptyBanner( $out["banner_${key}"]),
|
||||||
|
"banner_location" => $out["banner_location_${key}"],
|
||||||
|
"link_path" => $out["link_path_${key}"],
|
||||||
|
"action" => $banner_action,
|
||||||
|
"button_text" => $out["button_text_${key}"],
|
||||||
|
"short_button_text" => $out["short_button_text_${key}"],
|
||||||
|
"short_title" => $out["short_title_${key}"],
|
||||||
|
"short_description" => $out["short_description_${key}"],
|
||||||
|
"short_style" => $out["short_style_${key}"],
|
||||||
|
"status"=> 1
|
||||||
|
]
|
||||||
|
];
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user