bannrs
This commit is contained in:
@@ -32,8 +32,9 @@ class WrenchBanners extends BaseController
|
|||||||
$out = $this->getCache($endpoint); // try find in cache
|
$out = $this->getCache($endpoint); // try find in cache
|
||||||
// if ( count($out) == 0 ){
|
// if ( count($out) == 0 ){
|
||||||
$local_url = "http://".$this->micro_service_net1.":3032/familybanners";
|
$local_url = "http://".$this->micro_service_net1.":3032/familybanners";
|
||||||
$outBanner = $this->APIcall('GET', $local_url, $in);
|
$out = $this->APIcall('GET', $local_url, $in);
|
||||||
$out = $outBanner["result_list"];
|
log_message('critical', "familyBanners ********* ".serialize($out) );
|
||||||
|
|
||||||
$this->saveCache($endpoint,$out,1500);
|
$this->saveCache($endpoint,$out,1500);
|
||||||
// }
|
// }
|
||||||
return $this->summaryReturnData($in,$out); //json_encode( $final_out );
|
return $this->summaryReturnData($in,$out); //json_encode( $final_out );
|
||||||
|
|||||||
Reference in New Issue
Block a user