where(array('pid'=>1))->find(); }else{ $web = M('retail_domain')->where(array('url'=>$webname))->find(); $webset = M('retail_logo')->where(array('pid'=>$web['pid'],'status'=>1))->find(); } self::$WEBSET = $webset; session('logoinfo',$webset); } $this->assign('logoinfo',$webset); // 映射网站设置信息。 } public function _initialize() { $this->checkwebset(); } }