banners added
This commit is contained in:
@@ -515,6 +515,7 @@ class ResultFormatter extends Model
|
||||
$int_c = 'interest_count_'.$out["offer_code_${key}"];
|
||||
log_message('critical', "interest_count_ ::: ".$int_c);
|
||||
$cateG = $out["category_${key}"];
|
||||
$banner_img = ( $out["banner_${key}"] !="" ) ? $out["banner_${key}"] : 'default.jpg';
|
||||
$res["result_list"][] = array(
|
||||
"title" => $out["title_${key}"],
|
||||
"description" => $out["description_${key}"],
|
||||
@@ -536,7 +537,8 @@ class ResultFormatter extends Model
|
||||
'currency' => $out["currency_${key}"],
|
||||
'currency_code' => $out["currency_code_${key}"],
|
||||
'interest_count' => $out[$int_c] ?? 0,
|
||||
'category' => $this->dummyGetCategory( $cateG )
|
||||
'category' => $this->dummyGetCategory( $cateG ),
|
||||
'banner' => $banner_img
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user