Slider data

This commit is contained in:
CHIEFSOFT\ameye
2023-05-30 17:34:50 -04:00
parent 14bd768002
commit f4b18e53f7
3 changed files with 19 additions and 0 deletions
+15
View File
@@ -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) {
+2
View File
@@ -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;
+2
View File
@@ -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;