transfer id

This commit is contained in:
CHIEFSOFT\ameye
2023-10-28 14:12:27 -04:00
parent 9ceef3eeb3
commit b42e895b43
2 changed files with 2 additions and 0 deletions
@@ -496,6 +496,7 @@ long WrenchFamilyTransfer(CVars in, CVars &out){
if ( family_transfer_id > 0 ){
CVars trx;
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 );
out["status"] = "OK";
out["exchange_rate"] ="1";
+1
View File
@@ -123,6 +123,7 @@ long WrenchFamilyPayment( CVars in, CVars &out )
long member_id = REQ_LONG( in, "member_id", 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, "origing_wallet", 2, 50, "(.*)");
REQ_STRING(in, "target_wallet", 2, 50, "(.*)");