Authored by hf

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

@@ -99,34 +99,19 @@ class Bootstrap extends Bootstrap_Abstract @@ -99,34 +99,19 @@ class Bootstrap extends Bootstrap_Abstract
99 $module = 'Product'; 99 $module = 'Product';
100 $controller = 'Item'; 100 $controller = 'Item';
101 break; 101 break;
102 - case 'specialsale1':  
103 - $module = 'Product';  
104 - $controller = 'Sale';  
105 - $dispatcher->getRequest()->setParam('specialsaleId', 1);  
106 - break;  
107 - case 'specialsale2':  
108 - $module = 'Product';  
109 - $controller = 'Sale';  
110 - $dispatcher->getRequest()->setParam('specialsaleId', 2);  
111 - break;  
112 - case 'specialsale3':  
113 - $module = 'Product';  
114 - $controller = 'Sale';  
115 - $dispatcher->getRequest()->setParam('specialsaleId', 3);  
116 - break;  
117 default: // 其它(识别为品牌) 102 default: // 其它(识别为品牌)
118 $module = 'Product'; 103 $module = 'Product';
119 $action = 'Brand'; 104 $action = 'Brand';
120 $dispatcher->getRequest()->setParam('named', $subDomain); 105 $dispatcher->getRequest()->setParam('named', $subDomain);
121 break; 106 break;
122 } 107 }
123 -// // 专区活动  
124 -// if (stripos($subDomainLow, 'specialsale') !== false) {  
125 -// $saleId = strtr($subDomainLow, array('specialsale' => ''));  
126 -// $module = 'Product';  
127 -// $controller = 'Sale';  
128 -// $dispatcher->getRequest()->setParam('specialsaleId', $saleId);  
129 -// } 108 + // 专区活动
  109 + if (stripos($subDomainLow, 'specialsale') !== false) {
  110 + $saleId = strtr($subDomainLow, array('specialsale' => ''));
  111 + $module = 'Product';
  112 + $controller = 'Sale';
  113 + $dispatcher->getRequest()->setParam('specialsaleId', $saleId);
  114 + }
130 } 115 }
131 $dispatcher->getRequest()->module = $module; 116 $dispatcher->getRequest()->module = $module;
132 $dispatcher->getRequest()->controller = $controller; 117 $dispatcher->getRequest()->controller = $controller;