This commit is contained in:
CHIEFSOFT\ameye
2023-05-25 08:45:31 -04:00
parent f94ffb76f8
commit 9e60c746e3
+41 -2
View File
@@ -212,9 +212,48 @@ function processOutJson($in, $out) {
}
break;
case WRENCHBOARD_START_JOBLIST:
case WRENCHBOARD_ACCOUNT_JOBLIST:
$total = $out["total_record"];
$res = array(
"status" => $out["status"],
"total_record" => ($total - 1),
"internal_return" => $out["internal_return"],
"result_list" => array(),
"categories" => dummyCategory()
);
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}"],
"offer_uid" => $out["offer_uid_${key}"],
"job_uid" => $out["job_uid_${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}"],
"expire" => $out["expire_${key}"],
"sent" => $out["sent_${key}"],
"offer_code" => $out["offer_code_${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()
);
}
break;
case WRENCHBOARD_START_JOBLIST:
/* case WRENCHBOARD_ACCOUNT_JOBLIST: */
case WRENCHBOARD_ACCOUNT_PENDJOB:
case WRENCHBOARD_JOB_OFFERS: