banner add

This commit is contained in:
CHIEFSOFT\ameye
2023-07-04 19:44:42 -04:00
parent cf21097eec
commit e6743f441d
3 changed files with 17 additions and 2 deletions
+7 -2
View File
@@ -185,6 +185,9 @@ class WrenchApi extends BaseController
$in["action"] = WRENCHBOARD_FAMILY_SAMPLETASKS;
break;
case 'familysuggesttasks':
if (!isset($in["banner"])){
$in["banner"] = 'default.jpg';
}
$in["action"] = WRENCHBOARD_FAMILY_SGGESTTASKS;
break;
case 'familywaitingtasks':
@@ -596,8 +599,10 @@ class WrenchApi extends BaseController
switch ($in["action"]) {
case WRENCHBOARD_ACCOUNT_LOGIN:
case WRENCHBOARD_ACCOUNT_AUXLOGIN:
$endpoint = "SESSION-".$out["session"];
$this->saveCache($endpoint,$out);
if (isset($out["uid"]) && $out["uid"]!=''){
$endpoint = "SESSION-".$out["uid"];
$this->saveCache($endpoint,$out);
}
break;
}
// $endpoint = "WRENCH_BLOG_DATA";
+1
View File
@@ -100,6 +100,7 @@ class ResultFormatter extends Model
"title" => $out["title_${key}"],
"added" => $out["added_${key}"],
"status" => $out["status_${key}"],
"banner" => $out["banner_${key}"],
);
}
break;