From 9d1eaa2fa53f1dc494aeee51fbbf2b2cd120b17b Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Thu, 26 Sep 2024 21:30:19 -0400 Subject: [PATCH] int ic = itm_count; --- wrenchboard/src/shared_tool/reco_egine.cc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/wrenchboard/src/shared_tool/reco_egine.cc b/wrenchboard/src/shared_tool/reco_egine.cc index 90d884be..1f8e7934 100644 --- a/wrenchboard/src/shared_tool/reco_egine.cc +++ b/wrenchboard/src/shared_tool/reco_egine.cc @@ -115,13 +115,14 @@ long WrenchHomeBanners(CVars in, CVars &out) { if( RecoCheckTaskDue( itm_count, in, out ) != PHP_API_BAD_PARAM ) { itm_count++; } // - temporary for test if( RecoOffersInterest( itm_count, in, out ) != PHP_API_BAD_PARAM ) { itm_count++; } - if(itm_count < 3){ - } - 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++; } + + if(itm_count < 3){ + 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); @@ -170,7 +171,7 @@ long RecoLearnMore( int itm_count, CVars in, CVars &out ){ const PGresult *res; char vname[30]; try { - + int ic = itm_count; snprintf(vname, sizeof (vname), "title_%05d", ic); out[vname] = "Learn more";