interest count

This commit is contained in:
CHIEFSOFT\ameye
2023-06-11 20:41:21 -04:00
parent e4a0d5f7f9
commit 335084923e
2 changed files with 6 additions and 0 deletions
+2
View File
@@ -251,6 +251,7 @@ class ResultFormatter extends Model
);
for ($i = 0; $i < $total; $i++) {
$key = sprintf("%05d", $i);
$int_c = 'interest_count_'.$out["offer_code_${key}"];
$res["result_list"][] = array(
"title" => $out["title_${key}"],
"description" => $out["description_${key}"],
@@ -271,6 +272,7 @@ class ResultFormatter extends Model
'job_country' => $out["job_country_${key}"],
'currency' => 'Naira',
'currency_code' => 'NGN',
'interest_count' => $out["${$int_c}"] ?? 0,
'category' => $this->dummyGetCategory()
);
}