status filter
This commit is contained in:
@@ -437,9 +437,16 @@ long WrenchFamilyTransferStart(CVars in, CVars &out){
|
||||
map_to_cvars(f, rec);
|
||||
out = rec;
|
||||
// lets get the parent wallet too
|
||||
load_db_record(out,"SELECT w.amount AS origing_current_balance,w.uid AS origing_wallet_uid,w.transfer_limit AS origing_transfer_limit "
|
||||
if( load_db_record(out,"SELECT w.amount AS origing_current_balance,w.uid AS origing_wallet_uid,w.transfer_limit AS origing_transfer_limit "
|
||||
"FROM members_wallet w "
|
||||
"WHERE w.member_id = %lu AND w.currency='%s'", in["member_id"].Long(), out["currency"].c_str());
|
||||
"WHERE w.member_id = %lu AND w.currency='%s'", in["member_id"].Long(), out["currency"].c_str()) ){
|
||||
ret = PHP_API_OK;
|
||||
out["status"] = "OK";
|
||||
out["exchange_rate"] ="1";
|
||||
}
|
||||
else{
|
||||
out["status"] = "Originating wallet not found";
|
||||
}
|
||||
}
|
||||
ret = PHP_API_OK;
|
||||
out["status"] = "OK";
|
||||
|
||||
Reference in New Issue
Block a user