From 2344b4cabbc772b742d83bce3188320b3c3b8171 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Fri, 19 Jul 2024 20:05:42 -0400 Subject: [PATCH] fix array --- www-api/app/Controllers/WrenchBanners.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www-api/app/Controllers/WrenchBanners.php b/www-api/app/Controllers/WrenchBanners.php index 1dd87b9a..7f485e85 100644 --- a/www-api/app/Controllers/WrenchBanners.php +++ b/www-api/app/Controllers/WrenchBanners.php @@ -32,7 +32,8 @@ class WrenchBanners extends BaseController $out = $this->getCache($endpoint); // try find in cache // if ( count($out) == 0 ){ $local_url = "http://".$this->micro_service_net1.":3032/familybanners"; - $out = $this->APIcall('GET', $local_url, $in); + $outBanner = $this->APIcall('GET', $local_url, $in); + $out = $outBanner["result_list"]; $this->saveCache($endpoint,$out,1500); // } return $this->summaryReturnData($in,$out); //json_encode( $final_out );