...
|
...
|
@@ -9,7 +9,9 @@ use Plugin\Helpers; |
|
|
*/
|
|
|
class FloorProcess
|
|
|
{
|
|
|
|
|
|
private static $guangUrl = 'http://guang.m.yohobuy.com';
|
|
|
|
|
|
/**
|
|
|
* 频道参数
|
|
|
*
|
...
|
...
|
@@ -151,7 +153,7 @@ class FloorProcess |
|
|
$build['textCn'] = $one['title'];
|
|
|
$result['hotCategory']['list'][] = $build;
|
|
|
}
|
|
|
|
|
|
|
|
|
if (isset($data['title']['more_url'])) {
|
|
|
$data['title']['more_url'] = Helpers::getFilterUrl($data['title']['more_url']);
|
|
|
}
|
...
|
...
|
@@ -181,8 +183,8 @@ class FloorProcess |
|
|
$data['is_show_name'] = $data['title']['is_show'];
|
|
|
$data['name'] = $data['title']['title'];
|
|
|
unset($data['title']);
|
|
|
|
|
|
if (isset($data['title']['more_url'])) {
|
|
|
|
|
|
if (isset($data['title']['more_url'])) {
|
|
|
$data['title']['more_url'] = Helpers::getFilterUrl($data['title']['more_url']);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -227,12 +229,12 @@ class FloorProcess |
|
|
{
|
|
|
$result = array();
|
|
|
|
|
|
foreach($data as $key=>&$value){
|
|
|
if($key == 'title'){
|
|
|
foreach ($data as $key => &$value) {
|
|
|
if ($key == 'title') {
|
|
|
$value['more_url'] = Helpers::url('', array('id' => 3, 'gender' => self::$channel[$type]), 'guang');
|
|
|
}
|
|
|
if($key == 'article'){
|
|
|
foreach($value as &$one){
|
|
|
if ($key == 'article') {
|
|
|
foreach ($value as &$one) {
|
|
|
if (isset($one['url'])) {
|
|
|
$one['url'] = Helpers::getFilterUrl($one['url']);
|
|
|
}
|
...
|
...
|
@@ -240,8 +242,8 @@ class FloorProcess |
|
|
unset($one['src']);
|
|
|
}
|
|
|
}
|
|
|
if($key == 'recommend_collocation'){
|
|
|
foreach($value as &$one){
|
|
|
if ($key == 'recommend_collocation') {
|
|
|
foreach ($value as &$one) {
|
|
|
if (isset($one['url'])) {
|
|
|
$one['url'] = Helpers::getFilterUrl($one['url']);
|
|
|
}
|
...
|
...
|
@@ -265,11 +267,11 @@ class FloorProcess |
|
|
{
|
|
|
$result = array();
|
|
|
|
|
|
foreach($data as $key=>&$value){
|
|
|
if($key == 'title'){
|
|
|
foreach ($data as $key => &$value) {
|
|
|
if ($key == 'title') {
|
|
|
$value['more_url'] = Helpers::url('', array('id' => 4, 'gender' => self::$channel[$type]), 'guang');
|
|
|
}
|
|
|
if($key == 'list'){
|
|
|
if ($key == 'list') {
|
|
|
foreach ($value as &$one) {
|
|
|
if (isset($one['url'])) {
|
|
|
$one['url'] = Helpers::getFilterUrl($one['url']);
|
...
|
...
|
@@ -316,8 +318,8 @@ class FloorProcess |
|
|
|
|
|
unset($one['src']);
|
|
|
}
|
|
|
|
|
|
if (isset($data['title']['more_url'])) {
|
|
|
|
|
|
if (isset($data['title']['more_url'])) {
|
|
|
$data['title']['more_url'] = Helpers::getFilterUrl($data['title']['more_url']);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -355,8 +357,8 @@ class FloorProcess |
|
|
$one['img'] = Helpers::getImageUrl($one['src'], 191, 191);
|
|
|
unset($one['src']);
|
|
|
}
|
|
|
|
|
|
if (isset($data['title']['more_url'])) {
|
|
|
|
|
|
if (isset($data['title']['more_url'])) {
|
|
|
$data['title']['more_url'] = Helpers::getFilterUrl($data['title']['more_url']);
|
|
|
}
|
|
|
$result['creativeLife'] = $data;
|
...
|
...
|
|