Commit 5eeffc80 authored by zhz's avatar zhz

group

parent f0d9bcc4
...@@ -49,6 +49,7 @@ class GroupSaleServiceModel extends \Business\AbstractModel { ...@@ -49,6 +49,7 @@ class GroupSaleServiceModel extends \Business\AbstractModel {
} }
} }
} }
$data['goods'] = []; $data['goods'] = [];
if($data['goodsList'] && is_array($data['goodsList'])){ if($data['goodsList'] && is_array($data['goodsList'])){
foreach ($data['goodsList'] as $v){ foreach ($data['goodsList'] as $v){
...@@ -355,6 +356,11 @@ class GroupSaleServiceModel extends \Business\AbstractModel { ...@@ -355,6 +356,11 @@ class GroupSaleServiceModel extends \Business\AbstractModel {
if($v['bl_quota_starttime']<TIMESTAMP&&$v['endTime']>=TIMESTAMP){ if($v['bl_quota_starttime']<TIMESTAMP&&$v['endTime']>=TIMESTAMP){
$v['groupId'] = $v['blId']; $v['groupId'] = $v['blId'];
$v['image'] = ImageUtil::getGoodsImgUrl($v['image'],\Our\ImageConst::storeGroupImg); $v['image'] = ImageUtil::getGoodsImgUrl($v['image'],\Our\ImageConst::storeGroupImg);
if($v['bl_storage']<=\Our\ApiConst::zero){
$v['goodsState'] = \Our\ApiConst::cartGoodsNoStorage;
}else{
$v['goodsState'] = \Our\ApiConst::cartGoodsOnline;
}
unset($v['bl_title']); unset($v['bl_title']);
unset($v['store_id']); unset($v['store_id']);
unset($v['store_name']); unset($v['store_name']);
......
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