True back end - notifications

This commit is contained in:
CHIEFSOFT\ameye
2023-12-09 10:52:11 -05:00
parent d60dd65078
commit ee9225ec78
3 changed files with 25 additions and 3 deletions
+21
View File
@@ -119,6 +119,27 @@ class ResultFormatter extends Model
// id AS coupon_id, ca.code, ca.amount, ca.added::date,ca.status
switch ($in["action"]) {
case WRENCHBOARD_ACCT_NOTIFICATIONS:
$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);
$res["result_list"][] = array(
"msg" => $out["msg_${key}"],
"uid" => $out["uid_${key}"],
"icon" => $out["icon_${key}"],
"added" => $out["added_${key}"],
);
}
break;
case WRENCHBOARD_ACCOUNT_RECENTS:
$total = $out["total_record"];
$res = array(