Commit 0cb581fd authored by liuyuzhen's avatar liuyuzhen

店铺中部广告位

parent fb0877a9
......@@ -164,9 +164,14 @@ class AdvServiceModel extends \Business\AbstractModel{
}else{
$storeAdvPositionDao = \DAO\Adv\StoreAdvPositionModel::getInstance();
$storeAdvPosition = \Our\RedisHelper::cachedFunction(\Redis\Db9\StoreAdvPositionRedisModel::getInstance(),array(&$storeAdvPositionDao, 'find'),array(array('ap_id'=>$position)),\Our\ApiConst::oneHour,array($position));
if($storeAdvPosition&&$storeAdvPosition['default_content']){
$imageUrl = \Our\Common::getStaticFile($storeAdvPosition['default_content'],\Our\ImageConst::advPath);
$advs[] = array('href'=>'','imageUrl'=>$imageUrl);
}else{
$advs = array();
}
//$storeAdvPosition = $storeAdvPositionDao->find(array('ap_id'=>\Our\ApiConst::storeAdvPositionTop));
$imageUrl = \Our\Common::getStaticFile($storeAdvPosition['default_content'],\Our\ImageConst::advPath);
$advs[] = array('href'=>'','imageUrl'=>$imageUrl);
}
return $advs;
}
......
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