Authored by hf

code review by fei.hong: do fixes bugs to special sale huodong

... ... @@ -99,34 +99,19 @@ class Bootstrap extends Bootstrap_Abstract
$module = 'Product';
$controller = 'Item';
break;
case 'specialsale1':
$module = 'Product';
$controller = 'Sale';
$dispatcher->getRequest()->setParam('specialsaleId', 1);
break;
case 'specialsale2':
$module = 'Product';
$controller = 'Sale';
$dispatcher->getRequest()->setParam('specialsaleId', 2);
break;
case 'specialsale3':
$module = 'Product';
$controller = 'Sale';
$dispatcher->getRequest()->setParam('specialsaleId', 3);
break;
default: // 其它(识别为品牌)
$module = 'Product';
$action = 'Brand';
$dispatcher->getRequest()->setParam('named', $subDomain);
break;
}
// // 专区活动
// if (stripos($subDomainLow, 'specialsale') !== false) {
// $saleId = strtr($subDomainLow, array('specialsale' => ''));
// $module = 'Product';
// $controller = 'Sale';
// $dispatcher->getRequest()->setParam('specialsaleId', $saleId);
// }
// 专区活动
if (stripos($subDomainLow, 'specialsale') !== false) {
$saleId = strtr($subDomainLow, array('specialsale' => ''));
$module = 'Product';
$controller = 'Sale';
$dispatcher->getRequest()->setParam('specialsaleId', $saleId);
}
}
$dispatcher->getRequest()->module = $module;
$dispatcher->getRequest()->controller = $controller;
... ...