From fbc8599ded0d10511bc18b60e6287eefc792fb30 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Tue, 6 Jun 2023 11:45:11 -0400 Subject: [PATCH] button text --- wrenchboard/src/shared_tool/reco_egine.cc | 18 ++++++++++++++++++ www-api/app/Models/ResultFormatter.php | 1 + www-api/public/svs/user/formarter.php | 1 + 3 files changed, 20 insertions(+) diff --git a/wrenchboard/src/shared_tool/reco_egine.cc b/wrenchboard/src/shared_tool/reco_egine.cc index f9e4e33e..1d080dec 100644 --- a/wrenchboard/src/shared_tool/reco_egine.cc +++ b/wrenchboard/src/shared_tool/reco_egine.cc @@ -155,6 +155,9 @@ long RecoCheckOffers(int itm_count, CVars in, CVars &out ){ snprintf(vname, sizeof (vname), "link_path_%05d", ic); out[vname] = "mytask"; + snprintf(vname, sizeof (vname), "button_text_%05d", ic); + out[vname] = "Continue"; + ret = PHP_API_OK; } @@ -205,6 +208,9 @@ long RecoCheckFamilyLogin(int itm_count, CVars in, CVars &out ){ snprintf(vname, sizeof (vname), "link_path_%05d", ic); out[vname] = "acc-family"; + snprintf(vname, sizeof (vname), "button_text_%05d", ic); + out[vname] = "Continue"; + ret = PHP_API_OK; } } catch (bad_parameter) { @@ -253,6 +259,9 @@ long RecoCheckFamilyCount( int itm_count, CVars in, CVars &out ){ snprintf(vname, sizeof (vname), "link_path_%05d", ic); out[vname] = "acc-family"; + snprintf(vname, sizeof (vname), "button_text_%05d", ic); + out[vname] = "Continue"; + ret = PHP_API_OK; } } catch (bad_parameter) { @@ -301,6 +310,9 @@ long RecoCheckCoupons( int itm_count, CVars in, CVars &out ){ snprintf(vname, sizeof (vname), "link_path_%05d", ic); out[vname] = "my-coupon"; + snprintf(vname, sizeof (vname), "button_text_%05d", ic); + out[vname] = "Continue"; + ret = PHP_API_OK; } } catch (bad_parameter) { @@ -348,6 +360,9 @@ long RecoCheckTaskDue( int itm_count, CVars in, CVars &out ){ snprintf(vname, sizeof (vname), "link_path_%05d", ic); out[vname] = "my-pastdue-jobs"; + snprintf(vname, sizeof (vname), "button_text_%05d", ic); + out[vname] = "View Tasks"; + ret = PHP_API_OK; } } catch (bad_parameter) { @@ -393,6 +408,9 @@ long RecoCheckBlog( int itm_count, CVars in, CVars &out ){ snprintf(vname, sizeof (vname), "link_path_%05d", ic); out[vname] = "blog-page"; + snprintf(vname, sizeof (vname), "button_text_%05d", ic); + out[vname] = "View Article"; + ret = PHP_API_OK; } catch (bad_parameter) { diff --git a/www-api/app/Models/ResultFormatter.php b/www-api/app/Models/ResultFormatter.php index 72138e13..e8cc6f76 100644 --- a/www-api/app/Models/ResultFormatter.php +++ b/www-api/app/Models/ResultFormatter.php @@ -114,6 +114,7 @@ class ResultFormatter extends Model "banner" => $out["banner_${key}"], "banner_location" => $out["banner_location_${key}"], "link_path" => $out["link_path_${key}"], + "button_text" => $out["button_text_${key}"], ); } break; diff --git a/www-api/public/svs/user/formarter.php b/www-api/public/svs/user/formarter.php index 3d99293b..24c05d9a 100755 --- a/www-api/public/svs/user/formarter.php +++ b/www-api/public/svs/user/formarter.php @@ -108,6 +108,7 @@ function processOutJson($in, $out) { "banner" => $out["banner_${key}"], "banner_location" => $out["banner_location_${key}"], "link_path" => $out["link_path_${key}"], + "button_text" => $out["button_text_${key}"], ); } break;