Authored by 周少峰

Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into feature/web-list

framework @ 75bbc3b0
1 -Subproject commit 75bbc3b075de19f239532f60c5995d06c5f814e2  
1 <?php 1 <?php
2 -namespace WebPlugin\DataProcess\WebChannel; 2 +namespace WebPlugin\DataProcess;
3 3
4 class Channel 4 class Channel
5 { 5 {
6 6
7 public static $formatChannel = array( 7 public static $formatChannel = array(
8 - 'boys' => '\WebPlugin\DataProcess\WebChannel\Channel\Boys',  
9 - 'girls' => '\WebPlugin\DataProcess\WebChannel\Channel\Girls',  
10 - 'kids' => '\WebPlugin\DataProcess\WebChannel\Channel\Kids',  
11 - 'lifestyle' => '\WebPlugin\DataProcess\WebChannel\Channel\Lifestyle' 8 + 'boys' => '\WebPlugin\DataProcess\Channel\Boys',
  9 + 'girls' => '\WebPlugin\DataProcess\Channel\Girls',
  10 + 'kids' => '\WebPlugin\DataProcess\Channel\Kids',
  11 + 'lifestyle' => '\WebPlugin\DataProcess\Channel\Lifestyle'
12 ); 12 );
13 13
14 public static function getFormat($channel, $data) 14 public static function getFormat($channel, $data)
1 <?php 1 <?php
2 -namespace WebPlugin\DataProcess\WebChannel\Channel; 2 +namespace WebPlugin\DataProcess\Channel;
3 abstract class AbstractChannel 3 abstract class AbstractChannel
4 { 4 {
5 /*** 5 /***
1 <?php 1 <?php
2 -namespace WebPlugin\DataProcess\WebChannel\Channel; 2 +namespace WebPlugin\DataProcess\Channel;
3 class Boys extends AbstractChannel 3 class Boys extends AbstractChannel
4 { 4 {
5 /** 5 /**
1 <?php 1 <?php
2 -namespace WebPlugin\DataProcess\WebChannel\Channel; 2 +namespace WebPlugin\DataProcess\Channel;
3 class Girls extends AbstractChannel 3 class Girls extends AbstractChannel
4 { 4 {
5 public static function format($resource) 5 public static function format($resource)
1 <?php 1 <?php
2 -namespace WebPlugin\DataProcess\WebChannel\Channel; 2 +namespace WebPlugin\DataProcess\Channel;
3 class Kids extends AbstractChannel 3 class Kids extends AbstractChannel
4 { 4 {
5 /** 5 /**
1 <?php 1 <?php
2 -namespace WebPlugin\DataProcess\WebChannel\Channel; 2 +namespace WebPlugin\DataProcess\Channel;
3 class Lifestyle extends AbstractChannel 3 class Lifestyle extends AbstractChannel
4 { 4 {
5 /** 5 /**
1 <?php 1 <?php
2 -namespace WebPlugin\DataProcess\WebChannel; 2 +namespace WebPlugin\DataProcess;
3 3
4 -use Plugin\Images; 4 +use WebPlugin\Images;
5 use WebPlugin\Helpers; 5 use WebPlugin\Helpers;
6 use WebPlugin\Cache; 6 use WebPlugin\Cache;
7 use Configs\CacheConfig; 7 use Configs\CacheConfig;
@@ -7,7 +7,7 @@ use WebPlugin\Helpers; @@ -7,7 +7,7 @@ use WebPlugin\Helpers;
7 use WebPlugin\Cache; 7 use WebPlugin\Cache;
8 use LibModels\Web\Home\IndexData; 8 use LibModels\Web\Home\IndexData;
9 use LibModels\Web\Product\SearchData; 9 use LibModels\Web\Product\SearchData;
10 -use WebPlugin\DataProcess\WebChannel\Channel as ChannelProcess; 10 +use WebPlugin\DataProcess\Channel as ChannelProcess;
11 11
12 /** 12 /**
13 * web首页模板数据模型 13 * web首页模板数据模型
@@ -5,7 +5,7 @@ define('SITE_MAIN', 'http://web.dev.yohobuy.com'); // 网站主域名 @@ -5,7 +5,7 @@ define('SITE_MAIN', 'http://web.dev.yohobuy.com'); // 网站主域名
5 define('OLD_MAIN', 'http://www.yohobuy.com'); // 网站旧域名 5 define('OLD_MAIN', 'http://www.yohobuy.com'); // 网站旧域名
6 define('COOKIE_DOMAIN', '.yohobuy.com'); // COOKIE作用域 6 define('COOKIE_DOMAIN', '.yohobuy.com'); // COOKIE作用域
7 define('SUB_DOMAIN', '.yohobuy.com'); // 子域名后缀 7 define('SUB_DOMAIN', '.yohobuy.com'); // 子域名后缀
8 -define('USE_CACHE', true); // 缓存的开关 8 +define('USE_CACHE', false); // 缓存的开关
9 define('APPLICATION_PATH', dirname(__DIR__)); // 应用目录 9 define('APPLICATION_PATH', dirname(__DIR__)); // 应用目录
10 define('ROOT_PATH', dirname(dirname(APPLICATION_PATH))); // 根目录 10 define('ROOT_PATH', dirname(dirname(APPLICATION_PATH))); // 根目录
11 defined('APPLICATION_ENV') || define('APPLICATION_ENV', 'developer'); 11 defined('APPLICATION_ENV') || define('APPLICATION_ENV', 'developer');