From e28b4f6f82f181c8dd31768c920c9673f57192f2 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Fri, 19 Jul 2024 20:35:32 -0400 Subject: [PATCH] fix my banner --- www-api/app/Config/Constants.php | 2 ++ www-api/app/Controllers/WrenchBanners.php | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/www-api/app/Config/Constants.php b/www-api/app/Config/Constants.php index 49a8d087..2ebcf4ed 100644 --- a/www-api/app/Config/Constants.php +++ b/www-api/app/Config/Constants.php @@ -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; diff --git a/www-api/app/Controllers/WrenchBanners.php b/www-api/app/Controllers/WrenchBanners.php index 99687bd6..eed1c58e 100644 --- a/www-api/app/Controllers/WrenchBanners.php +++ b/www-api/app/Controllers/WrenchBanners.php @@ -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 );