bsnkl nsme
This commit is contained in:
@@ -82,7 +82,7 @@ long getUserRecipientCombo( CVars in, CVars &out ){
|
|||||||
out["total_record"] = "0";
|
out["total_record"] = "0";
|
||||||
const PGresult *res;
|
const PGresult *res;
|
||||||
res = pgsql_query("SELECT b.id,b.firstname||' '||b.lastname||' '||b.account_no||' '||k.name AS recipient, "
|
res = pgsql_query("SELECT b.id,b.firstname||' '||b.lastname||' '||b.account_no||' '||k.name AS recipient, "
|
||||||
" b.account_no,b.country,b.added,b.uid AS recipient_uid ,b.uid "
|
" b.account_no,b.country,b.added,b.uid AS recipient_uid ,b.uid ,k.name AS bank_name "
|
||||||
"FROM sendmoney_recipient b "
|
"FROM sendmoney_recipient b "
|
||||||
"LEFT JOIN bank_entity_codes k ON k.code=b.bank_code "
|
"LEFT JOIN bank_entity_codes k ON k.code=b.bank_code "
|
||||||
"WHERE b.member_id = %lu AND b.status=1",member_id);
|
"WHERE b.member_id = %lu AND b.status=1",member_id);
|
||||||
@@ -119,6 +119,10 @@ long getUserRecipientCombo( CVars in, CVars &out ){
|
|||||||
|
|
||||||
snprintf(vname, sizeof (vname), "uid_%05d", i);
|
snprintf(vname, sizeof (vname), "uid_%05d", i);
|
||||||
out[vname] = rec["uid"];
|
out[vname] = rec["uid"];
|
||||||
|
|
||||||
|
snprintf(vname, sizeof (vname), "bank_name_%05d", i);
|
||||||
|
out[vname] = rec["bank_name"];
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ret = PHP_API_OK;
|
ret = PHP_API_OK;
|
||||||
|
|||||||
@@ -627,7 +627,8 @@ class ResultFormatter extends Model
|
|||||||
"recipient_id" => $out["id_${key}"],
|
"recipient_id" => $out["id_${key}"],
|
||||||
"recipient_uid" => $out["uid_${key}"],
|
"recipient_uid" => $out["uid_${key}"],
|
||||||
"country" => $out["country_${key}"],
|
"country" => $out["country_${key}"],
|
||||||
"added" => $out["added_${key}"]
|
"added" => $out["added_${key}"],
|
||||||
|
"bank_name" => $out["bank_name_${key}"],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user