notifications
This commit is contained in:
@@ -226,6 +226,7 @@ enum { PARTNER_STRIPE };
|
||||
#define WRENCHBOARD_ACCOUNT_COUNTRY_BANKS 11183
|
||||
|
||||
#define WRENCHBOARD_ACCOUNT_HOMEBANNERS 11200
|
||||
#define WRENCHBOARD_ACCOUNT_NOTIFICATIONS 11205
|
||||
|
||||
#define WRENCHBOARD_USER_DELETEACC 11990
|
||||
#define WRENCHBOARD_ACCOUNT_END 11999
|
||||
|
||||
@@ -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