Authored by Rock Zhang

修复尺码错乱的bug,保持和app一致

Code Review By Rock Zhang
@@ -247,6 +247,9 @@ class ListProcess @@ -247,6 +247,9 @@ class ListProcess
247 247
248 private static function priceRange($data) 248 private static function priceRange($data)
249 { 249 {
  250 + // 首先对价格进行排序
  251 + ksort($data, SORT_NUMERIC);
  252 +
250 $result = array( 253 $result = array(
251 'title' => '价格', 254 'title' => '价格',
252 'name' => '所有价格', 255 'name' => '所有价格',
@@ -177,7 +177,7 @@ class NewsaleController extends AbstractAction @@ -177,7 +177,7 @@ class NewsaleController extends AbstractAction
177 $color = $this->get('color', null); 177 $color = $this->get('color', null);
178 $size = $this->get('size', null); 178 $size = $this->get('size', null);
179 $price = $this->get('price', null); 179 $price = $this->get('price', null);
180 - $p_d = $this->get('discount', null); 180 + $p_d = '0.1,0.3';
181 $dayLimit = $this->get('dayLimit', null); 181 $dayLimit = $this->get('dayLimit', null);
182 $limit = $this->get('limit', 60); 182 $limit = $this->get('limit', 60);
183 $page = $this->get('page', 1); 183 $page = $this->get('page', 1);
@@ -191,6 +191,7 @@ class NewsaleController extends AbstractAction @@ -191,6 +191,7 @@ class NewsaleController extends AbstractAction
191 $data = NewsaleData::selectNewSaleProducts( 191 $data = NewsaleData::selectNewSaleProducts(
192 $gender, $brand, $sort, $color, $size, $price, $p_d, $channel, $dayLimit, $limit, $page, $order 192 $gender, $brand, $sort, $color, $size, $price, $p_d, $channel, $dayLimit, $limit, $page, $order
193 ); 193 );
  194 + print_r($data);
194 $result = \Product\NewsaleModel::filterData($data, $gender); 195 $result = \Product\NewsaleModel::filterData($data, $gender);
195 } 196 }
196 197