button text

This commit is contained in:
CHIEFSOFT\ameye
2023-06-06 11:45:11 -04:00
parent 36f9ab520e
commit fbc8599ded
3 changed files with 20 additions and 0 deletions
+18
View File
@@ -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) {
+1
View File
@@ -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;
+1
View File
@@ -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;