material_510_3

This commit is contained in:
dengbw
2022-05-10 17:25:42 +08:00
committed by lccsw
parent 1d3056566c
commit b45099cc60
+2 -14
View File
@@ -276,13 +276,7 @@ class Template extends HD_Controller
}
$brand_ids = '';
if ($info['brand_ids']) {
if (!strstr($info['brand_ids'], '0,')) {
$brand_ids = '0,';
}
$brand_ids .= implode(',', $info['brand_ids']);
if (!strstr($brand_ids, ',0')) {
$brand_ids .= ',0';
}
$brand_ids = '0,' . implode(',', $info['brand_ids']) . ',0';
}
$json_data['biz_pop'] = $info['biz_pop'];
$json_data['moments'] = $info['moments'];
@@ -341,13 +335,7 @@ class Template extends HD_Controller
}
$brand_ids = '';
if ($info['brand_ids']) {
if (!strstr($info['brand_ids'], '0,')) {
$brand_ids = '0,';
}
$brand_ids .= implode(',', $info['brand_ids']);
if (!strstr($brand_ids, ',0')) {
$brand_ids .= ',0';
}
$brand_ids = '0,' . implode(',', $info['brand_ids']) . ',0';
}
$json_data['biz_pop'] = $info['biz_pop'];
$json_data['moments'] = $info['moments'];