...
|
...
|
@@ -9,7 +9,9 @@ use Plugin\Helpers; |
|
|
*/
|
|
|
class FloorProcess
|
|
|
{
|
|
|
|
|
|
private static $guangUrl = 'http://guang.m.yohobuy.com';
|
|
|
|
|
|
/**
|
|
|
* 频道参数
|
|
|
*
|
...
|
...
|
@@ -131,6 +133,7 @@ class FloorProcess |
|
|
|
|
|
/**
|
|
|
* 女生品类
|
|
|
* 推荐(1T-12F)
|
|
|
*/
|
|
|
private static function recommend_content_three($data, $type)
|
|
|
{
|
...
|
...
|
@@ -138,7 +141,7 @@ class FloorProcess |
|
|
|
|
|
$build = array();
|
|
|
if (!empty($data['big_image'][0])) {
|
|
|
$build['img'] = Helpers::getImageUrl($data['big_image'][0]['src'], 640, 198);
|
|
|
$build['img'] = Helpers::getImageUrl($data['big_image'][0]['src'], 640, 200);
|
|
|
$build['url'] = Helpers::getFilterUrl($data['big_image'][0]['url']);
|
|
|
$result['hotCategory']['banner'] = $build;
|
|
|
}
|
...
|
...
|
@@ -150,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']);
|
|
|
}
|
...
|
...
|
@@ -180,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']);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -226,12 +229,12 @@ class FloorProcess |
|
|
{
|
|
|
$result = array();
|
|
|
|
|
|
foreach($data as $key=>&$value){
|
|
|
if($key == 'title'){
|
|
|
$value['more_url'] = Helpers::url('', array('id' => 2, 'gender' => self::$channel[$type]), 'guang');
|
|
|
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']);
|
|
|
}
|
...
|
...
|
@@ -239,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']);
|
|
|
}
|
...
|
...
|
@@ -264,11 +267,11 @@ class FloorProcess |
|
|
{
|
|
|
$result = array();
|
|
|
|
|
|
foreach($data as $key=>&$value){
|
|
|
if($key == 'title'){
|
|
|
$value['more_url'] = Helpers::url('', array('id' => 1, 'gender' => self::$channel[$type]), 'guang');
|
|
|
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']);
|
...
|
...
|
@@ -300,7 +303,7 @@ class FloorProcess |
|
|
$one['img'] = Helpers::getImageUrl($one['src'], 640, 403);
|
|
|
unset($one['src']);
|
|
|
}
|
|
|
$data['banner']['list'] = $data['big_image'];
|
|
|
$result['big_image']['list'] = $data['big_image'];
|
|
|
|
|
|
foreach ($data['list'] as $kk => &$one) {
|
|
|
if ($kk == 0) {
|
...
|
...
|
@@ -315,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']);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -337,7 +340,6 @@ class FloorProcess |
|
|
{
|
|
|
$result = array();
|
|
|
|
|
|
$data['banner'] = array();
|
|
|
foreach ($data['big_image'] as &$one) {
|
|
|
if (isset($one['url'])) {
|
|
|
$one['url'] = Helpers::getFilterUrl($one['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;
|
...
|
...
|
|