Format referrer hx

This commit is contained in:
DESKTOP-GBA0BK8\Admin
2023-04-23 11:40:58 -04:00
parent b41950b319
commit a858c7ecd6
2 changed files with 42 additions and 0 deletions
+21
View File
@@ -338,6 +338,27 @@ class ResultFormatter extends Model
);
}
break;
case WRENCHBOARD_ACCOUNT_REFFERHX:
$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(
"added_date" => $out["added_date_${key}"],
"email" => $out["email_${key}"],
"firstname" => $out["firstname_${key}"],
"lastname" => $out["lastname_${key}"],
"status" => $out["status_${key}"]
);
}
break;
case WRENCHBOARD_ACCOUNT_WALLETS:
$total = $out["total_record"];
$res = array(
+21
View File
@@ -312,6 +312,27 @@ function processOutJson($in, $out) {
);
}
break;
case WRENCHBOARD_ACCOUNT_REFFERHX:
$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(
"added_date" => $out["added_date_${key}"],
"email" => $out["email_${key}"],
"firstname" => $out["firstname_${key}"],
"lastname" => $out["lastname_${key}"],
"status" => $out["status_${key}"]
);
}
break;
case WRENCHBOARD_ACCOUNT_WALLETS:
$total = $out["total_record"];
$res = array(