country formater
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user