Commit a0492e13 authored by liuyuzhen's avatar liuyuzhen

购物车排序问题

parent 8b29c84c
......@@ -192,6 +192,10 @@ class GroupSaleServiceModel extends \Business\AbstractModel {
}
}
if(isset($storeCarts)&&count($storeCarts)>\Our\ApiConst::zero){
foreach ($storeCarts as $key => $row){
$goodsState[$key] = $row['goodsState'];
}
array_multisort($goodsState, SORT_ASC, $storeCarts);
$store = $storeDao->get($storeId,false);
$temp['storeName'] = $store['store_name'];
$temp['storeId'] = $storeId;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment