/** * 获取经纪公司的品牌logo和banner售卖广告 * @param $compid 门店ID * @param $logotype 品牌logo类型 =1:列表页logo; =2: 房源单页banner; */ public function getLogoImgByCompId($compid, $logotype, $cityid) { $key = Util_MemCacheKey::getBannerImgByCompId($compid, $logotype); APF::get_instance()->benchmark_begin(__CLASS__ . " getBannerImgByCompId "); $memcache = APF_Cache_Factory::get_instance()->get_memcache(); $value = $memcache->get($key); if (!$value && $value !== "") { $time = 7200; $value = parent::getLogoImgByCompId($compid, $logotype, $cityid); $memcache->add($key, $value, 0, $time); } APF::get_instance()->benchmark_end(__CLASS__ . " getBannerImgByCompId "); return $value; }