From 41981b6e138bc140352531ad688c44ecd65f9651 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Thu, 26 Sep 2024 21:23:16 -0400 Subject: [PATCH] out[vname] = "Need more information how it works ?"; --- wrenchboard/src/shared_tool/reco_egine.cc | 67 +++++++++++++++++++++-- 1 file changed, 63 insertions(+), 4 deletions(-) diff --git a/wrenchboard/src/shared_tool/reco_egine.cc b/wrenchboard/src/shared_tool/reco_egine.cc index 19b08c34..90d884be 100644 --- a/wrenchboard/src/shared_tool/reco_egine.cc +++ b/wrenchboard/src/shared_tool/reco_egine.cc @@ -120,10 +120,9 @@ long WrenchHomeBanners(CVars in, CVars &out) { } if( RecoReferAFreind( itm_count, in, out ) != PHP_API_BAD_PARAM ) { itm_count++; } + if( RecoLearnMore( itm_count, in, out ) != PHP_API_BAD_PARAM ) { itm_count++; } if( RecoCheckBlog( itm_count, in, out ) != PHP_API_BAD_PARAM ) { itm_count++; } - - out["home_dash_type"]="DEFAULT_HOME_DASH"; LoginWrenchBoardSetDashType(in, out); /* @@ -165,6 +164,66 @@ JOBOWNER_HOME_DASH /* family_uid::text IN (SELECT uid::text FROM members_family WHERE member_id = %lu ) */ +long RecoLearnMore( int itm_count, CVars in, CVars &out ){ + logfmt(logINFO, "RecoLearnMore()"); + long ret = PHP_API_BAD_PARAM; + const PGresult *res; + char vname[30]; + try { + + + snprintf(vname, sizeof (vname), "title_%05d", ic); + out[vname] = "Learn more"; + + snprintf(vname, sizeof (vname), "description_%05d", ic); + out[vname] = "Need more information how it works ?"; + + snprintf(vname, sizeof (vname), "card_type_%05d", ic); + out[vname] = "LEARN_MORE"; + + snprintf(vname, sizeof (vname), "offer_id_%05d", ic); + out[vname] = "0"; + + snprintf(vname, sizeof (vname), "blog_id_%05d", ic); + out[vname] = "0"; + + snprintf(vname, sizeof (vname), "card_icon_%05d", ic); + out[vname] = "icon1 imp_offers"; + + snprintf(vname, sizeof (vname), "banner_%05d", ic); + out[vname] ="https://www.wrenchboard.com/assets/images/apps/banners/learnmore.jpg"; + + snprintf(vname, sizeof (vname), "banner_location_%05d", ic); + out[vname] ="URL"; + + snprintf(vname, sizeof (vname), "link_path_%05d", ic); + out[vname] = "learnmore"; + + snprintf(vname, sizeof (vname), "button_text_%05d", ic); + out[vname] = "View"; + + snprintf(vname, sizeof (vname), "short_button_text_%05d", ic); + out[vname] = "View"; + + snprintf(vname, sizeof (vname), "short_title_%05d", ic); + out[vname] = "Learn more"; + + snprintf(vname, sizeof (vname), "short_description_%05d", ic); + out[vname] = "Need more information how it works ?"; + + snprintf(vname, sizeof (vname), "short_style_%05d", ic); + out[vname] = "short_style"; + + ret = PHP_API_OK; + + + + } catch (bad_parameter) { + out["status"] = "ERROR"; + } + logfmt(logINFO, "/RecoLearnMore()"); + return ret; +} long RecoFamilyWaiting( int itm_count, CVars in, CVars &out ){ logfmt(logINFO, "RecoFamilyWaiting()"); @@ -227,8 +286,8 @@ long RecoFamilyWaiting( int itm_count, CVars in, CVars &out ){ out["status"] = "ERROR"; } logfmt(logINFO, "/RecoFamilyWaiting()"); - return ret; -return 0; + return ret; +//return 0; } long RecoLearnMore( int itm_count, CVars in, CVars &out ){