Commit d4e35913 authored by liuyuzhen's avatar liuyuzhen

购物车数据

parent c0d3ea76
...@@ -121,7 +121,7 @@ class CartController extends \Our\Controller_AbstractApi{ ...@@ -121,7 +121,7 @@ class CartController extends \Our\Controller_AbstractApi{
$storeCartData = $cartService->getDeliveryTypeForCart($address,$storeCartData); $storeCartData = $cartService->getDeliveryTypeForCart($address,$storeCartData);
$data = $cartService->getFormatCartListForOrder($storeCartData,$address); $data = $cartService->getFormatCartListForOrder($storeCartData,$address);
$this->success($data); $this->success($data);
} }
/** /**
......
...@@ -188,7 +188,7 @@ class GroupSaleServiceModel extends \Business\AbstractModel { ...@@ -188,7 +188,7 @@ class GroupSaleServiceModel extends \Business\AbstractModel {
} }
$tempObj['goodsAttr'] = $goodsDao->getFormatGoodsAttr($tempCart['goods_spec']); $tempObj['goodsAttr'] = $goodsDao->getFormatGoodsAttr($tempCart['goods_spec']);
$tempObj['goodsMid'] = $tempCart['goods_mid']; $tempObj['goodsMid'] = $tempCart['goods_mid'];
$storeCarts[] = $tempObj; array_push($storeCarts,$tempObj);
} }
} }
if(isset($storeCarts)&&count($storeCarts)>\Our\ApiConst::zero){ if(isset($storeCarts)&&count($storeCarts)>\Our\ApiConst::zero){
...@@ -196,7 +196,7 @@ class GroupSaleServiceModel extends \Business\AbstractModel { ...@@ -196,7 +196,7 @@ class GroupSaleServiceModel extends \Business\AbstractModel {
$newstoreCarts= array(); $newstoreCarts= array();
foreach ($storeCarts as $row){ foreach ($storeCarts as $row){
if($row['goodsState']==\Our\ApiConst::cartGoodsOnline){ if($row['goodsState']==\Our\ApiConst::cartGoodsOnline){
$newstoreCarts[] = $row; array_push($newstoreCarts,$row);
}else{ }else{
$offlineCarts[] = $row; $offlineCarts[] = $row;
} }
...@@ -207,10 +207,10 @@ class GroupSaleServiceModel extends \Business\AbstractModel { ...@@ -207,10 +207,10 @@ class GroupSaleServiceModel extends \Business\AbstractModel {
} }
array_multisort($goodsState, SORT_DESC, $offlineCarts); array_multisort($goodsState, SORT_DESC, $offlineCarts);
foreach($offlineCarts as $temp){ foreach($offlineCarts as $temp){
$newstoreCarts[] = $temp; array_push($newstoreCarts,$temp);
} }
} }
$storeCarts = $newstoreCarts; //$storeCarts = $newstoreCarts;
$store = $storeDao->get($storeId,false); $store = $storeDao->get($storeId,false);
$temp['storeName'] = $store['store_name']; $temp['storeName'] = $store['store_name'];
$temp['storeId'] = $storeId; $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