transfer id
This commit is contained in:
@@ -496,6 +496,7 @@ long WrenchFamilyTransfer(CVars in, CVars &out){
|
|||||||
if ( family_transfer_id > 0 ){
|
if ( family_transfer_id > 0 ){
|
||||||
CVars trx;
|
CVars trx;
|
||||||
if ( load_db_record(trx, "SELECT * FROM family_transfer WHERE id =%lu",family_transfer_id) > 0 ){
|
if ( load_db_record(trx, "SELECT * FROM family_transfer WHERE id =%lu",family_transfer_id) > 0 ){
|
||||||
|
trx["transfer_id"] = family_transfer_id; trx["transfer_id"].set_valid( true );
|
||||||
return WrenchFamilyPayment( trx, out );
|
return WrenchFamilyPayment( trx, out );
|
||||||
out["status"] = "OK";
|
out["status"] = "OK";
|
||||||
out["exchange_rate"] ="1";
|
out["exchange_rate"] ="1";
|
||||||
|
|||||||
@@ -123,6 +123,7 @@ long WrenchFamilyPayment( CVars in, CVars &out )
|
|||||||
|
|
||||||
long member_id = REQ_LONG( in, "member_id", 1, -1 );
|
long member_id = REQ_LONG( in, "member_id", 1, -1 );
|
||||||
long recipient_id = REQ_LONG( in, "recipient", 1, -1 );
|
long recipient_id = REQ_LONG( in, "recipient", 1, -1 );
|
||||||
|
long transfer_id = REQ_LONG( in, "transfer_id", 1, -1 );
|
||||||
REQ_STRING(in, "currency", 2, 20, "(.*)");
|
REQ_STRING(in, "currency", 2, 20, "(.*)");
|
||||||
REQ_STRING(in, "origing_wallet", 2, 50, "(.*)");
|
REQ_STRING(in, "origing_wallet", 2, 50, "(.*)");
|
||||||
REQ_STRING(in, "target_wallet", 2, 50, "(.*)");
|
REQ_STRING(in, "target_wallet", 2, 50, "(.*)");
|
||||||
|
|||||||
Reference in New Issue
Block a user