formater update

This commit is contained in:
CHIEFSOFT\ameye
2023-05-12 14:42:09 -04:00
parent c816f475a7
commit 5babad7684
2 changed files with 30 additions and 12 deletions
@@ -199,6 +199,9 @@ long WrenchJobManagerList( CVars in, CVars &out){
CVars rec;
map_to_cvars(f, rec);
snprintf(vname, sizeof (vname), "id_%05d", i);
out[vname] = rec["id"];
snprintf(vname, sizeof (vname), "job_id_%05d", i);
out[vname] = rec["job_id"];
+27 -12
View File
@@ -227,18 +227,33 @@ function processOutJson($in, $out) {
for ($i = 0; $i < $total; $i++) {
$key = sprintf("%05d", $i);
$res["result_list"][] = array(
"title" => $out["title_${key}"],
"description" => $out["description_${key}"],
"id" => $out["id_${key}"],
"job_description" => cleanUpDescription($out["job_description_${key}"]),
"job_detail" => cleanUpDescription($out["job_detail_${key}"]),
"price" => $out["price_${key}"],
"timeline_days" => $out["timeline_days_${key}"],
"contract_id" => $out["contract_id_${key}"],
"job_id" => $out["job_id_${key}"],
"contract" => $out["contract_${key}"],
"status_description" => $out["status_description_${key}"],
"delivery_date" => $out["delivery_date_${key}"]
"title" => $out["title_${key}"],
"description" => $out["description_${key}"],
"id" => $out["id_${key}"],
"job_description" => $out["job_description_${key}"],
"job_detail" => cleanUpDescription($out["job_detail_${key}"]),
"price" => $out["price_${key}"],
"timeline_days" => $out["timeline_days_${key}"],
"contract_id" => $out["contract_id_${key}"],
"job_id" => $out["job_id_${key}"],
"contract" => $out["contract_${key}"],
"status_description" => $out["status_description_${key}"],
"delivery_date" => $out["delivery_date_${key}"],
"offer_uid" => $out["offer_uid_${key}"],
"job_uid" => $out["job_uid_${key}"],
"expire" => $out["expire_${key}"],
"sent" => $out["sent_${key}"],
"offer_code" => $out["offer_code_${key}"],
"job_to" => $out["job_to_${key}"],
"public_view" => $out["public_view_${key}"],
"whishlisted"=> false,
"thumbnil" => 'marketplace-product-1.jpg',
'isActive' => true,
'offer_added' => $out["offer_added_${key}"],
'job_country' => $out["job_country_${key}"],
'currency' => 'Naira',
'currency_code' => 'NGN',
'category' => dummyGetCategory()
);
}