banners start
This commit is contained in:
@@ -40,6 +40,21 @@ class WrenchBanners extends BaseController
|
||||
// return $this->summaryReturnData($in,$out); //json_encode( $final_out );
|
||||
// }
|
||||
|
||||
public function usersBanners(){
|
||||
$raw_json = file_get_contents('php://input');
|
||||
$in = json_decode($raw_json, true);
|
||||
$out =[];
|
||||
$in["action"] = WRENCHBOARD_ACCOUNT_HOMEBANNERS ;
|
||||
$endpoint = $in["action"]."-". $in["uuid"]; // str_pad($in["uid"], 12, "0", STR_PAD_LEFT);
|
||||
$out = $this->getCache($endpoint); // try find in cache
|
||||
if ( count($out) == 0 ){
|
||||
$ret = $this->wrenchboard->wrenchboard_api($in, $out);
|
||||
$out['internal_return'] = $ret;
|
||||
log_message('critical', "usersBanners ********* ALL ".serialize($out) );
|
||||
$this->saveCache($endpoint,$out,1500);
|
||||
}
|
||||
return $this->summaryReturnData($in,$out); //json_encode( $final_out );
|
||||
}
|
||||
public function apigate(){
|
||||
log_message('critical', "0001");
|
||||
header('Access-Control-Allow-Origin: *');
|
||||
|
||||
Reference in New Issue
Block a user