This commit is contained in:
2022-03-26 19:10:30 -04:00
parent 92d89d90a3
commit de37aea2c4
3 changed files with 24 additions and 2 deletions
+22
View File
@@ -180,6 +180,28 @@ function processOutJson($in, $out) {
}
break;
case WRENCHBOARD_ACCOUNT_WALLETS:
$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(
"currency" => $out["currency_${key}"],
"amount" => $out["amount_${key}"],
"symbol" => $out["symbol_${key}"],
"description" => $out["description_${key}"],
"action_type" => $out["action_type_${key}"],
"code" => $out["code_${key}"]
);
}
break;
default:
return $out;
}