notifications
This commit is contained in:
@@ -592,7 +592,9 @@ long WrenchBoardMobileSendUserWallet(CVars in, CVars &out) {
|
||||
REQ_LONG(in, "member_id", 1, -1);
|
||||
out["total_record"] = "0";
|
||||
const PGresult *res;
|
||||
res = pgsql_query("SELECT w.amount,c.*,w.amount AS current_balance 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());
|
||||
res = pgsql_query("SELECT w.amount,c.*,w.amount AS current_balance,c.country "
|
||||
"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());
|
||||
|
||||
if (res != NULL && pgsql_num_rows(res) > 0) {
|
||||
out["total_record"] = pgsql_num_rows(res);
|
||||
@@ -621,6 +623,8 @@ long WrenchBoardMobileSendUserWallet(CVars in, CVars &out) {
|
||||
snprintf(vname, sizeof (vname), "code_%05d", i);
|
||||
out[vname] = rec["code"];
|
||||
|
||||
snprintf(vname, sizeof (vname), "currency_%05d", i);
|
||||
out[vname] = rec["currency"];
|
||||
}
|
||||
}
|
||||
ret = PHP_API_OK;
|
||||
|
||||
Reference in New Issue
Block a user