banners added

This commit is contained in:
CHIEFSOFT\ameye
2023-11-04 12:24:23 -04:00
parent 2811e02c58
commit ae4616b5bf
+3 -1
View File
@@ -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
);
}