Commit 3455d3d8 authored by liuyuzhen's avatar liuyuzhen

Merge branch 'master_dev' of git.shenbd.com:qm-develop/shenbd into lyz

parents 096e95b9 72ba8ea5
...@@ -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){
...@@ -381,6 +382,11 @@ class GroupSaleServiceModel extends \Business\AbstractModel { ...@@ -381,6 +382,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