From 3046f459089653113bb6890d85a6a39fe088753c Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Fri, 4 Oct 2024 23:47:45 -0400 Subject: [PATCH] http://?:3033/walletcountry --- www-api/app/Controllers/WrenchJobs.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/www-api/app/Controllers/WrenchJobs.php b/www-api/app/Controllers/WrenchJobs.php index aba03422..509cbfbf 100644 --- a/www-api/app/Controllers/WrenchJobs.php +++ b/www-api/app/Controllers/WrenchJobs.php @@ -87,10 +87,12 @@ class WrenchJobs extends BaseController $endpointW = "USER_WALLET_COUNTRY-". $in["uid"]; $outW = $this->getCache($endpointW); // I need your wallet country here - if ( is_array($outW) && is_array($outW["result_list"]) && count($outW["result_list"]) > 0){ + if ( !is_array($outW["result_list"])){ $local_urlW = "http://".$this->micro_service_net1.":3033/walletcountry"; $outW = $this->APIcall('GET', $local_urlW, $in); - $this->saveCache($endpointW,$outW,2880); + if ( is_array($outW["result_list"]) && count($outW["result_list"]) > 0){ + $this->saveCache($endpointW,$outW,2880); + } } // Fileter result_list to wallet country