From f59bf668f53c82052263f5f1ade0a3c360a928b6 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Thu, 12 Sep 2024 10:26:20 -0400 Subject: [PATCH] fix text url --- wrenchboard/src/shared_tool/reco_egine.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/wrenchboard/src/shared_tool/reco_egine.cc b/wrenchboard/src/shared_tool/reco_egine.cc index 35a819e5..25fb4549 100644 --- a/wrenchboard/src/shared_tool/reco_egine.cc +++ b/wrenchboard/src/shared_tool/reco_egine.cc @@ -164,7 +164,7 @@ long RecoStartMarketCardUS( 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 * FROM members WHERE uid::text = '%s' AND added::date > now() - interval '3000 minutes' AND country='US' ", in["uuid"].c_str()); + res = pgsql_query("SELECT * FROM members WHERE uid::text = '%s' AND added::date > now() - interval '6000 minutes' AND country='US' ", in["uuid"].c_str()); if (res != NULL && pgsql_num_rows(res) > 0) { snprintf(vname, sizeof (vname), "title_%05d", ic); @@ -252,7 +252,8 @@ long RecoOffersInterest(int itm_count, CVars in, CVars &out ){ out[vname] = "icon1"; snprintf(vname, sizeof (vname), "banner_%05d", ic); - out[vname] ="https://blog.wrenchboard.com/wp-content/uploads/2022/01/wrechboard-sample.jpg"; + //out[vname] ="https://blog.wrenchboard.com/wp-content/uploads/2022/01/wrechboard-sample.jpg"; + out[vname] ="https://www.wrenchboard.com/assets/images/apps/banners/interest-pending.jpg"; snprintf(vname, sizeof (vname), "banner_location_%05d", ic); out[vname] ="URL"; @@ -294,7 +295,7 @@ long RecoStartMarketCard( 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 * FROM members WHERE uid::text = '%s' AND added::date > now() - interval '3000 minutes' ", in["uuid"].c_str()); + res = pgsql_query("SELECT * FROM members WHERE uid::text = '%s' AND added::date > now() - interval '6000 minutes' ", in["uuid"].c_str()); if (res != NULL && pgsql_num_rows(res) > 0) { snprintf(vname, sizeof (vname), "title_%05d", ic); @@ -329,7 +330,7 @@ long RecoStartMarketCard( int itm_count, CVars in, CVars &out ){ // out[vname] ="LOCAL"; snprintf(vname, sizeof (vname), "link_path_%05d", ic); - out[vname] = "mytask"; + out[vname] = "market"; snprintf(vname, sizeof (vname), "button_text_%05d", ic); out[vname] = "Continue";