diff --git a/www-api/app/Controllers/WrenchFamily.php b/www-api/app/Controllers/WrenchFamily.php index c15a3ae8..29c9e1e5 100644 --- a/www-api/app/Controllers/WrenchFamily.php +++ b/www-api/app/Controllers/WrenchFamily.php @@ -111,7 +111,6 @@ class WrenchFamily extends BaseController } public function familyBanners(){ - $raw_json = file_get_contents('php://input'); $in = json_decode($raw_json, true); @@ -119,8 +118,12 @@ class WrenchFamily extends BaseController $endpoint = "FAMILY_BANNERS-". $in["uid"]; // str_pad($in["uid"], 12, "0", STR_PAD_LEFT); $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); + // $local_url = "http://".$this->micro_service_net1.":3032/familybanners"; + // $out = $this->APIcall('GET', $local_url, $in); + + $ret = $this->wrenchboard->wrenchboard_api($in, $out); + $out['internal_return'] = $ret; + log_message('critical', "familyBanners ********* ALL ".serialize($out["result_list"]) ); log_message('critical', "familyBanners ********* COUNT ".serialize(count($out["result_list"])) ); $this->saveCache($endpoint,$out,1500);