Commit 81c78406 authored by zhz's avatar zhz

group

parent 72ba8ea5
...@@ -379,14 +379,9 @@ class GroupSaleServiceModel extends \Business\AbstractModel { ...@@ -379,14 +379,9 @@ class GroupSaleServiceModel extends \Business\AbstractModel {
$totalCount = \Our\RedisHelper::cachedFunction(\Redis\Db4\PBundlingRedisModel::getInstance(),array(&$pbundlingInstance, 'getCount'),array(array('store_id'=>$storeId)),\Our\ApiConst::oneDaySecond,array($storeId)); $totalCount = \Our\RedisHelper::cachedFunction(\Redis\Db4\PBundlingRedisModel::getInstance(),array(&$pbundlingInstance, 'getCount'),array(array('store_id'=>$storeId)),\Our\ApiConst::oneDaySecond,array($storeId));
//$groupList = $this->getPBundlingList($list); //$groupList = $this->getPBundlingList($list);
foreach ($groupList as $k=>$v){ foreach ($groupList as $k=>$v){
if($v['bl_quota_starttime']<TIMESTAMP&&$v['endTime']>=TIMESTAMP){ if($v['bl_quota_starttime']<TIMESTAMP&&$v['endTime']>=TIMESTAMP && $v['bl_storage'] > \Our\ApiConst::zero){
$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