notifications

This commit is contained in:
CHIEFSOFT\ameye
2023-06-25 10:21:38 -04:00
parent ce80e421fa
commit 74c2b4be38
5 changed files with 11 additions and 4 deletions
+5 -1
View File
@@ -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;