button text
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user