country formater

This commit is contained in:
DESKTOP-GBA0BK8\Admin
2023-04-23 09:30:15 -04:00
parent c0b0523a69
commit 31f120f707
+16 -1
View File
@@ -322,7 +322,22 @@ class ResultFormatter extends Model
}
break;
case WRENCHBOARD_ACCOUNT_COUNTRY_BANKS:
$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(
"name" => $out["name_${key}"],
"code" => $out["code_${key}"]
);
}
break;
case WRENCHBOARD_ACCOUNT_WALLETS:
$total = $out["total_record"];
$res = array(