$countItem

This commit is contained in:
CHIEFSOFT\ameye
2024-08-26 09:36:00 -04:00
parent 4a05671ae3
commit e27fad7415
+6 -1
View File
@@ -53,7 +53,12 @@ class WrenchJobs extends BaseController
$endpoint = "JOB_DATA-". $in["uid"];
$out = $this->getCache($endpoint);
if ( count($out)==0 ){
$countItem = 0;
if( is_array($out)){
$countItem = count($out);
}
if ( $countItem == 0 ){
$local_url = "http://".$this->micro_service_net1.":3033/marketjobs";
$out = $this->APIcall('GET', $local_url, $in);
$this->saveCache($endpoint,$out,3000);