Commit 9f6fe50f authored by liuyuzhen's avatar liuyuzhen

测试数据

parent 6971db38
......@@ -177,13 +177,13 @@ class CouponModel extends \DAO\AbstractModel {
$goodsCon['goods_state'] = \Our\ApiConst::onlineGoodsState;
$goodsCon['goods_verify'] = \Our\ApiConst::onlineGoodsVerify;
$goodsCon['is_del'] = \Our\ApiConst::onlineGoodsDel;
$goodsCon['store_id'] = $storeId;
//$goodsCommonFlag = \Our\RedisHelper::cachedFunction(\Redis\Db4\GoodsCommonRedisModel::getInstance(), array(&$goodsCommonDao, 'getOne'),array($goodsCon,'goods_commonid'),\Our\ApiConst::oneHour);
$gcClassFlag = $goodsCommonDao->getOne($goodsCon,'goods_commonid');
if(!$gcClassFlag){
continue;
}
}
if($coupon['type']==\Our\ApiConst::goodsCoupon){ //指定商品优惠券,判断商品是否在线,在线才能展示
}else if($coupon['type']==\Our\ApiConst::goodsCoupon){ //指定商品优惠券,判断商品是否在线,在线才能展示
$goodsCommmonIds = array_filter(explode(',',$coupon['ids']));
if(!$goodsCommmonIds){
continue;
......@@ -193,6 +193,7 @@ class CouponModel extends \DAO\AbstractModel {
$goodsCon['goods_state'] = \Our\ApiConst::onlineGoodsState;
$goodsCon['goods_verify'] = \Our\ApiConst::onlineGoodsVerify;
$goodsCon['is_del'] = \Our\ApiConst::onlineGoodsDel;
$goodsCon['store_id'] = $storeId;
//$goodsCommonFlag = \Our\RedisHelper::cachedFunction(\Redis\Db4\GoodsCommonRedisModel::getInstance(), array(&$goodsCommonDao, 'getOne'),array($goodsCon,'goods_commonid'),\Our\ApiConst::oneHour);
$goodsCommonFlag = $goodsCommonDao->getOne($goodsCon,'goods_commonid');
if(!$goodsCommonFlag){
......
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