From 188e3ea93582e94bf4f740e4c8f98c5b6e8d0a96 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sat, 5 Oct 2024 00:25:55 -0400 Subject: [PATCH] wallet country --- www-api/app/Controllers/WrenchJobs.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/www-api/app/Controllers/WrenchJobs.php b/www-api/app/Controllers/WrenchJobs.php index c5a5366f..e446f5bd 100644 --- a/www-api/app/Controllers/WrenchJobs.php +++ b/www-api/app/Controllers/WrenchJobs.php @@ -91,14 +91,14 @@ class WrenchJobs extends BaseController $local_urlW = "http://".$this->micro_service_net1.":3033/walletcountry"; $outW = $this->APIcall('GET', $local_urlW, $in); if ( is_array($outW["result_list"]) && count($outW["result_list"]) > 0){ - $this->saveCache($endpointW,$outW,2880); + $this->saveCache($endpointW,$outW,15660); } } $filter_job_list =[]; - $outW['result_list2'] = ['NG']; + $wallet_country = $first_names = array_column($outW['result_list'], 'country');; foreach ($out['result_list'] as $item) { - if ( in_array( $item['job_country'], $outW['result_list2']) ){ + if ( in_array( $item['job_country'], $wallet_country) ){ log_message('critical', "***** ***** WrenchJobs::ITEM ". serialize($item)); $filter_job_list[] = $item; }