fix my banner
This commit is contained in:
@@ -276,6 +276,8 @@ define('WRENCHBOARD_ACCOUNT_HOMEBANNERS', 11200);
|
||||
define('WRENCHBOARD_ACCOUNT_PLAYGROUND', 11201);
|
||||
|
||||
define('WRENCHBOARD_ACCOUNT_RECENTS', 11202);
|
||||
const WRENCHBOARD_FAMILY_HOMEBANNERS = 11203;
|
||||
|
||||
define('WRENCHBOARD_ACCOUNT_NOTIFICATIONS', 11205);
|
||||
|
||||
const WRENCHBOARD_PICTURE_PROFILE = 11300;
|
||||
|
||||
@@ -27,7 +27,7 @@ class WrenchBanners extends BaseController
|
||||
$raw_json = file_get_contents('php://input');
|
||||
$in = json_decode($raw_json, true);
|
||||
|
||||
$in["action"] = WRENCHBOARD_ACCOUNT_HOMEBANNERS;
|
||||
$in["action"] = WRENCHBOARD_FAMILY_HOMEBANNERS;
|
||||
$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 ){
|
||||
@@ -35,7 +35,7 @@ class WrenchBanners extends BaseController
|
||||
$out = $this->APIcall('GET', $local_url, $in);
|
||||
log_message('critical', "familyBanners ********* ALL ".serialize($out["result_list"]) );
|
||||
log_message('critical', "familyBanners ********* COUNT ".serialize(count($out["result_list"])) );
|
||||
|
||||
|
||||
$this->saveCache($endpoint,$out,1500);
|
||||
// }
|
||||
return $this->summaryReturnData($in,$out); //json_encode( $final_out );
|
||||
|
||||
Reference in New Issue
Block a user