From d822982a3e26841a86772a4fad19521503914e31 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sat, 24 Jun 2023 23:03:58 -0400 Subject: [PATCH] banner text --- wrenchboard/src/shared_tool/reco_egine.cc | 16 ++++++++-------- www-api/app/Controllers/WrenchApi.php | 4 ++++ 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/wrenchboard/src/shared_tool/reco_egine.cc b/wrenchboard/src/shared_tool/reco_egine.cc index cd13fcfc..7b02227f 100644 --- a/wrenchboard/src/shared_tool/reco_egine.cc +++ b/wrenchboard/src/shared_tool/reco_egine.cc @@ -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"; diff --git a/www-api/app/Controllers/WrenchApi.php b/www-api/app/Controllers/WrenchApi.php index bfa3f753..377f8fce 100644 --- a/www-api/app/Controllers/WrenchApi.php +++ b/www-api/app/Controllers/WrenchApi.php @@ -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;