Recipient uid
This commit is contained in:
@@ -106,6 +106,8 @@ enum { PARTNER_STRIPE };
|
||||
//#define JOBS_CREATED_MAIL 202
|
||||
//#define JOBS_CREATED_MAIL 203
|
||||
|
||||
#define WRENCH_EXISTING_ACCOUNT 100
|
||||
#define WRENCH_NEWBANK_ACCOUNT 500
|
||||
|
||||
#define PROJ_CREATED_MAIL 300
|
||||
//#define PROJ_CREATED_MAIL 301
|
||||
|
||||
@@ -732,6 +732,17 @@ long WrenchBoardMobileSendMoney(CVars in, CVars &out){
|
||||
long ret = PHP_API_BAD_PARAM;
|
||||
|
||||
try{
|
||||
long mode = REQ_LONG(in, "mode", 1, -1);
|
||||
|
||||
switch(mode){
|
||||
case WRENCH_EXISTING_ACCOUNT:
|
||||
REQ_LONG(in, "recipientid", 1, -1);
|
||||
break;
|
||||
case WRENCH_NEWBANK_ACCOUNT:
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
int r1, r2, r3;
|
||||
char send_trxid[25];
|
||||
srand(time(NULL));
|
||||
|
||||
@@ -81,7 +81,7 @@ long getUserRecipientCombo( CVars in, CVars &out ){
|
||||
|
||||
out["total_record"] = "0";
|
||||
const PGresult *res;
|
||||
res = pgsql_query("SELECT b.id,b.firstname||' '||b.lastname||' '||b.account_no||' '||k.name AS recipient, b.account_no,b.country,b.added "
|
||||
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"
|
||||
"FROM sendmoney_recipient b "
|
||||
"LEFT JOIN bank_entity_codes k ON k.code=b.bank_code "
|
||||
"WHERE b.member_id = %lu AND b.status=1",member_id);
|
||||
@@ -112,6 +112,12 @@ long getUserRecipientCombo( CVars in, CVars &out ){
|
||||
|
||||
snprintf(vname, sizeof (vname), "added_%05d", i);
|
||||
out[vname] = rec["added"];
|
||||
|
||||
snprintf(vname, sizeof (vname), "recipient_uid_%05d", i);
|
||||
out[vname] = rec["recipient_uid"];
|
||||
|
||||
snprintf(vname, sizeof (vname), "uid_%05d", i);
|
||||
out[vname] = rec["uid"];
|
||||
}
|
||||
}
|
||||
ret = PHP_API_OK;
|
||||
|
||||
Reference in New Issue
Block a user