Commit d4e35913 authored by liuyuzhen's avatar liuyuzhen

购物车数据

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