puchase hx formart
This commit is contained in:
@@ -258,7 +258,27 @@ class ResultFormatter extends Model
|
||||
);
|
||||
}
|
||||
break;
|
||||
|
||||
case WRENCHBOARD_MOBILE_PURCHASEHX:
|
||||
$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(
|
||||
"fee" => $out["fee_${key}"],
|
||||
"amount" => $out["amount_${key}"],
|
||||
"confirmation" => $out["confirmation_${key}"],
|
||||
"status" => $out["status_${key}"],
|
||||
"added_date" => $out["added_date_${key}"],
|
||||
"payment_id" => $out["id_${key}"],
|
||||
"payment_uid" => $out["uid_${key}"]
|
||||
);
|
||||
}
|
||||
break;
|
||||
case WRENCHBOARD_USER_GETBANKLIST:
|
||||
|
||||
$total = $out["total_record"];
|
||||
|
||||
@@ -202,7 +202,27 @@ function processOutJson($in, $out) {
|
||||
);
|
||||
}
|
||||
break;
|
||||
|
||||
case WRENCHBOARD_MOBILE_PURCHASEHX:
|
||||
$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(
|
||||
"fee" => $out["fee_${key}"],
|
||||
"amount" => $out["amount_${key}"],
|
||||
"confirmation" => $out["confirmation_${key}"],
|
||||
"status" => $out["status_${key}"],
|
||||
"added_date" => $out["added_date_${key}"],
|
||||
"payment_id" => $out["id_${key}"],
|
||||
"payment_uid" => $out["uid_${key}"]
|
||||
);
|
||||
}
|
||||
break;
|
||||
case WRENCHBOARD_USER_GETBANKLIST:
|
||||
|
||||
$total = $out["total_record"];
|
||||
|
||||
Reference in New Issue
Block a user