Slider data
This commit is contained in:
@@ -149,6 +149,9 @@ long RecoCheckOffers(int itm_count, CVars in, CVars &out ){
|
||||
snprintf(vname, sizeof (vname), "banner_%05d", ic);
|
||||
out[vname] ="https://blog.wrenchboard.com/wp-content/uploads/2022/01/wrechboard-sample.jpg";
|
||||
|
||||
snprintf(vname, sizeof (vname), "link_path_%05d", ic);
|
||||
out[vname] = "mytask";
|
||||
|
||||
ret = PHP_API_OK;
|
||||
}
|
||||
|
||||
@@ -193,6 +196,9 @@ long RecoCheckFamilyLogin(int itm_count, CVars in, CVars &out ){
|
||||
snprintf(vname, sizeof (vname), "banner_%05d", ic);
|
||||
out[vname] ="https://blog.wrenchboard.com/wp-content/uploads/2022/01/wrechboard-sample.jpg";
|
||||
|
||||
snprintf(vname, sizeof (vname), "link_path_%05d", ic);
|
||||
out[vname] = "acc-family";
|
||||
|
||||
ret = PHP_API_OK;
|
||||
}
|
||||
} catch (bad_parameter) {
|
||||
@@ -235,6 +241,9 @@ long RecoCheckFamilyCount( int itm_count, CVars in, CVars &out ){
|
||||
snprintf(vname, sizeof (vname), "banner_%05d", ic);
|
||||
out[vname] ="https://blog.wrenchboard.com/wp-content/uploads/2022/01/wrechboard-sample.jpg";
|
||||
|
||||
snprintf(vname, sizeof (vname), "link_path_%05d", ic);
|
||||
out[vname] = "acc-family";
|
||||
|
||||
ret = PHP_API_OK;
|
||||
}
|
||||
} catch (bad_parameter) {
|
||||
@@ -277,6 +286,9 @@ long RecoCheckCoupons( int itm_count, CVars in, CVars &out ){
|
||||
snprintf(vname, sizeof (vname), "banner_%05d", ic);
|
||||
out[vname] ="https://blog.wrenchboard.com/wp-content/uploads/2022/01/wrechboard-sample.jpg";
|
||||
|
||||
snprintf(vname, sizeof (vname), "link_path_%05d", ic);
|
||||
out[vname] = "my-coupon";
|
||||
|
||||
ret = PHP_API_OK;
|
||||
}
|
||||
} catch (bad_parameter) {
|
||||
@@ -321,6 +333,9 @@ long RecoCheckBlog( int itm_count, CVars in, CVars &out ){
|
||||
snprintf(vname, sizeof (vname), "banner_%05d", ic);
|
||||
out[vname] ="https://blog.wrenchboard.com/wp-content/uploads/2022/01/wrechboard-sample.jpg";
|
||||
|
||||
snprintf(vname, sizeof (vname), "link_path_%05d", ic);
|
||||
out[vname] = "blog-page";
|
||||
|
||||
ret = PHP_API_OK;
|
||||
|
||||
} catch (bad_parameter) {
|
||||
|
||||
@@ -101,6 +101,8 @@ class ResultFormatter extends Model
|
||||
"blog_id" => $out["blog_id_${key}"],
|
||||
"card_icon" => $out["card_icon_${key}"],
|
||||
"offer_id" => $out["offer_id_${key}"],
|
||||
"banner" => $out["banner_${key}"],
|
||||
"link_path" => $out["link_path_${key}"],
|
||||
);
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -95,6 +95,8 @@ function processOutJson($in, $out) {
|
||||
"blog_id" => $out["blog_id_${key}"],
|
||||
"card_icon" => $out["card_icon_${key}"],
|
||||
"offer_id" => $out["offer_id_${key}"],
|
||||
"banner" => $out["banner_${key}"],
|
||||
"link_path" => $out["link_path_${key}"],
|
||||
);
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user