fix format

This commit is contained in:
CHIEFSOFT\ameye
2023-07-19 20:00:44 -04:00
parent 092a60e8e9
commit 574c98a5da
@@ -109,6 +109,39 @@ class WrenchDashRecent extends BaseController
// return $this->response->setJson($response);
}
public function processRecentOutJson($in, $out) {
$action = $in["action"];
switch($action){
case WRENCHBOARD_FAMILY_SGGESTLIST:
case WRENCHBOARD_FAMILY_SGGESTWAITING:
$total = $out["total_record"];
$res = array(
"status" => $out["status"],
"total_record" => ($total - 1),
"internal_return" => $out["internal_return"],
"result_list" => array(),
);
for ($i = 0; $i < $total; $i++) {
$key = sprintf("%05d", $i);
$status_no = $out["status_${key}"];
$statusTxt = $this->suggestedStatusText($status_no);
$res["result_list"][] = array(
"uid" => $out["uid_${key}"],
"family_uid" => $out["family_uid_${key}"],
"description" => $out["description_${key}"],
"title" => $out["title_${key}"],
"added" => $out["added_${key}"],
"status" => $out["status_${key}"],
"status_text" => $statusTxt ,
"banner" => $out["banner_${key}"],
);
}
break;
}
return $res;
}
private function dashRecent($in,$out){
// $ret = 0;
$in["action"] = WRENCHBOARD_FAMILY_SGGESTWAITING;