wallet uid
This commit is contained in:
@@ -634,7 +634,7 @@ long WrenchBoardMobileSendUserWallet(CVars in, CVars &out) {
|
|||||||
REQ_LONG(in, "member_id", 1, -1);
|
REQ_LONG(in, "member_id", 1, -1);
|
||||||
out["total_record"] = "0";
|
out["total_record"] = "0";
|
||||||
const PGresult *res;
|
const PGresult *res;
|
||||||
res = pgsql_query("SELECT w.amount,c.*,w.amount AS current_balance,c.country,w.transfer_limit "
|
res = pgsql_query("SELECT w.amount,c.*,w.amount AS current_balance,c.country,w.transfer_limit,w.uid AS wallet_uid "
|
||||||
"FROM members_wallet w LEFT JOIN currency c ON c.code=w.currency "
|
"FROM members_wallet w LEFT JOIN currency c ON c.code=w.currency "
|
||||||
"WHERE w.member_id = %lu ORDER BY c.lorder DESC", in["member_id"].Long());
|
"WHERE w.member_id = %lu ORDER BY c.lorder DESC", in["member_id"].Long());
|
||||||
|
|
||||||
@@ -671,6 +671,10 @@ long WrenchBoardMobileSendUserWallet(CVars in, CVars &out) {
|
|||||||
snprintf(vname, sizeof (vname), "transfer_limit_%05d", i);
|
snprintf(vname, sizeof (vname), "transfer_limit_%05d", i);
|
||||||
out[vname] = rec["transfer_limit"];
|
out[vname] = rec["transfer_limit"];
|
||||||
|
|
||||||
|
snprintf(vname, sizeof (vname), "wallet_uid_%05d", i);
|
||||||
|
out[vname] = rec["wallet_uid"];
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ret = PHP_API_OK;
|
ret = PHP_API_OK;
|
||||||
|
|||||||
@@ -691,6 +691,7 @@ class ResultFormatter extends Model
|
|||||||
"code" => $out["code_${key}"],
|
"code" => $out["code_${key}"],
|
||||||
"country" => $out["country_${key}"],
|
"country" => $out["country_${key}"],
|
||||||
"transfer_limit" => $out["transfer_limit_${key}"],
|
"transfer_limit" => $out["transfer_limit_${key}"],
|
||||||
|
"wallet_uid" => $out["wallet_uid_${key}"],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user