intererst debug

This commit is contained in:
CHIEFSOFT\ameye
2023-07-15 05:22:16 -04:00
parent 981a5cd47e
commit 5df8ada174
2 changed files with 4 additions and 1 deletions
@@ -529,6 +529,8 @@ wrenchboard-> ;
snprintf(vname, sizeof (vname), "interest_count_%s", rec2["offer_code"].c_str());
out[vname] = rec2["interest_count"];
logfmt(logINFO, "WrenchReturnJobList->INTEREST COUNT %s ==== %lu",vname,rec2["interest_count"].Long());
}
}
+2 -1
View File
@@ -414,6 +414,7 @@ class ResultFormatter extends Model
for ($i = 0; $i < $total; $i++) {
$key = sprintf("%05d", $i);
$int_c = 'interest_count_'.$out["offer_code_${key}"];
log_message('critical', "interest_count_ ::: ".$int_c);
$cateG = $out["category_${key}"];
$res["result_list"][] = array(
"title" => $out["title_${key}"],
@@ -435,7 +436,7 @@ class ResultFormatter extends Model
'job_country' => $out["job_country_${key}"],
'currency' => $out["currency_${key}"],
'currency_code' => $out["currency_code_${key}"],
'interest_count' => $out["${$int_c}"] ?? 0,
'interest_count' => $out[$int_c] ?? 0,
'category' => $this->dummyGetCategory( $cateG )
);
}