notifications
This commit is contained in:
@@ -226,6 +226,7 @@ enum { PARTNER_STRIPE };
|
|||||||
#define WRENCHBOARD_ACCOUNT_COUNTRY_BANKS 11183
|
#define WRENCHBOARD_ACCOUNT_COUNTRY_BANKS 11183
|
||||||
|
|
||||||
#define WRENCHBOARD_ACCOUNT_HOMEBANNERS 11200
|
#define WRENCHBOARD_ACCOUNT_HOMEBANNERS 11200
|
||||||
|
#define WRENCHBOARD_ACCOUNT_NOTIFICATIONS 11205
|
||||||
|
|
||||||
#define WRENCHBOARD_USER_DELETEACC 11990
|
#define WRENCHBOARD_USER_DELETEACC 11990
|
||||||
#define WRENCHBOARD_ACCOUNT_END 11999
|
#define WRENCHBOARD_ACCOUNT_END 11999
|
||||||
|
|||||||
@@ -592,7 +592,9 @@ 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 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) {
|
if (res != NULL && pgsql_num_rows(res) > 0) {
|
||||||
out["total_record"] = pgsql_num_rows(res);
|
out["total_record"] = pgsql_num_rows(res);
|
||||||
@@ -621,6 +623,8 @@ long WrenchBoardMobileSendUserWallet(CVars in, CVars &out) {
|
|||||||
snprintf(vname, sizeof (vname), "code_%05d", i);
|
snprintf(vname, sizeof (vname), "code_%05d", i);
|
||||||
out[vname] = rec["code"];
|
out[vname] = rec["code"];
|
||||||
|
|
||||||
|
snprintf(vname, sizeof (vname), "currency_%05d", i);
|
||||||
|
out[vname] = rec["currency"];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ret = PHP_API_OK;
|
ret = PHP_API_OK;
|
||||||
|
|||||||
@@ -219,7 +219,8 @@ define('WRENCHBOARD_ACCOUNT_JOB_COUNTRY', 11181);
|
|||||||
define('WRENCHBOARD_ACCOUNT_COUNTRY_BANKS', 11183);
|
define('WRENCHBOARD_ACCOUNT_COUNTRY_BANKS', 11183);
|
||||||
|
|
||||||
|
|
||||||
define('WRENCHBOARD_ACCOUNT_HOMEBANNERS', 11200);
|
define('WRENCHBOARD_ACCOUNT_HOMEBANNERS', 11200);
|
||||||
|
define('WRENCHBOARD_ACCOUNT_NOTIFICATIONS', 11205);
|
||||||
|
|
||||||
define('WRENCHBOARD_PICTURE_PROFILE', 11300);
|
define('WRENCHBOARD_PICTURE_PROFILE', 11300);
|
||||||
define('WRENCHBOARD_PICTURE_FAMMEMBER',11305);
|
define('WRENCHBOARD_PICTURE_FAMMEMBER',11305);
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ class WrenchApi extends BaseController
|
|||||||
private function prepareEndPointData($endpoint, $in, &$call_backend=true,&$local_out=[]){
|
private function prepareEndPointData($endpoint, $in, &$call_backend=true,&$local_out=[]){
|
||||||
switch ($endpoint) {
|
switch ($endpoint) {
|
||||||
case 'mynotifications':
|
case 'mynotifications':
|
||||||
$in["action"] = 67989999;
|
$in["action"] = WRENCHBOARD_ACCOUNT_NOTIFICATIONS;
|
||||||
break;
|
break;
|
||||||
case 'payprevcard':
|
case 'payprevcard':
|
||||||
$in["action"] = WRENCHBOARD_USER_USESAVEDCC;
|
$in["action"] = WRENCHBOARD_USER_USESAVEDCC;
|
||||||
|
|||||||
@@ -587,7 +587,8 @@ class ResultFormatter extends Model
|
|||||||
"symbol" => $out["symbol_${key}"],
|
"symbol" => $out["symbol_${key}"],
|
||||||
"description" => $out["description_${key}"],
|
"description" => $out["description_${key}"],
|
||||||
"action_type" => $out["action_type_${key}"],
|
"action_type" => $out["action_type_${key}"],
|
||||||
"code" => $out["code_${key}"]
|
"code" => $out["code_${key}"],
|
||||||
|
"country" => $out["country_${key}"]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user