where($map)->find(); $file = "https://" . $_SERVER['HTTP_HOST'] . ltrim($app['plist_url'], "."); $file = "itms-services://?action=download-manifest&url=$file"; $this->assign('url',$file); }else{ $map['id']=2; $app=M('app','tab_')->where($map)->find(); $this->assign('url',"http://".$_SERVER['HTTP_HOST'].$app['file_url']); } $this->display(); } }