banner text

This commit is contained in:
CHIEFSOFT\ameye
2023-06-24 23:03:58 -04:00
parent 121913ece2
commit d822982a3e
2 changed files with 12 additions and 8 deletions
+8 -8
View File
@@ -299,13 +299,13 @@ long RecoCheckFamilyLogin(int itm_count, CVars in, CVars &out ){
out[vname] = "View Now";
snprintf(vname, sizeof (vname), "short_title_%05d", ic);
out[vname] = "Family Accounts";
out[vname] = "Some family accounts are yet to log in";
snprintf(vname, sizeof (vname), "short_description_%05d", ic);
out[vname] = "Help your team remember their account information.";
snprintf(vname, sizeof (vname), "short_style_%05d", ic);
out[vname] = "Some family accounts are yet to log in";
out[vname] = "short_style";
ret = PHP_API_OK;
}
@@ -368,7 +368,7 @@ long RecoReferAFreind(int itm_count, CVars in, CVars &out ){
out[vname] = "Share WrenchBoard with a friend.";
snprintf(vname, sizeof (vname), "short_style_%05d", ic);
out[vname] = "Refer a Friend.";
out[vname] = "short_style by";
ret = PHP_API_OK;
}
@@ -456,14 +456,14 @@ long RecoCheckFamilyCount( int itm_count, CVars in, CVars &out ){
try {
int ic = itm_count;
long member_id = REQ_LONG(in, "member_id", 1, -1);
res = pgsql_query("SELECT count(id) AS family_count FROM members_family WHERE member_id = %lu AND status = 1 AND last_login IS NULL ",member_id);
res = pgsql_query("SELECT count(id) AS family_count FROM members_family WHERE member_id = %lu AND status = 1 ",member_id);
if (res != NULL && pgsql_num_rows(res) == 0) {
snprintf(vname, sizeof (vname), "title_%05d", ic);
out[vname] = "You can add your family text";
out[vname] = "Activate your family account.";
snprintf(vname, sizeof (vname), "description_%05d", ic);
out[vname] = "do you know his is the family not login text DESCRIPTION - This is the offer available text";
out[vname] = "Add Kids, family, set, manage goals, and reward them.";
snprintf(vname, sizeof (vname), "card_type_%05d", ic);
out[vname] = "FAMILY_ADD";
@@ -493,10 +493,10 @@ long RecoCheckFamilyCount( int itm_count, CVars in, CVars &out ){
out[vname] = "short_button_text";
snprintf(vname, sizeof (vname), "short_title_%05d", ic);
out[vname] = "short_title";
out[vname] = "Activate your family account.";
snprintf(vname, sizeof (vname), "short_description_%05d", ic);
out[vname] = "short_description";
out[vname] = "Add Kids, family, set, manage goals, and reward them. ";
snprintf(vname, sizeof (vname), "short_style_%05d", ic);
out[vname] = "short_style lb";
+4
View File
@@ -114,6 +114,7 @@ class WrenchApi extends BaseController
'paynewcard' => ['POST'],
'paylistcard' => ['POST'],
'payremcard' => ['POST'],
'mynotifications' => ['POST'],
];
return $endpoints;
}
@@ -121,6 +122,9 @@ class WrenchApi extends BaseController
private function prepareEndPointData($endpoint, $in, &$call_backend=true,&$local_out=[]){
switch ($endpoint) {
case 'mynotifications':
$in["action"] = 67989999;
break;
case 'payprevcard':
$in["action"] = WRENCHBOARD_USER_USESAVEDCC;
break;