fix my banner

This commit is contained in:
CHIEFSOFT\ameye
2024-07-19 20:35:32 -04:00
parent c3f45ee6e7
commit e28b4f6f82
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -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;
+2 -2
View File
@@ -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 );