public function previewPic()
{
$params = t($_GET['params']);
$params = explode(',', $params);
$content = array();
foreach ($params as $key => &$val) {
$attachInfo = model('Attach')->getAttachById($val);
$tmp['bannerpic'] = getImageUrl($attachInfo['save_path'] . $attachInfo['save_name']);
$content[] = $tmp;
unset($tmp);
}
$this->assign('content', $content);
$this->assign('width', t($_GET['width']));
//自定义预览模板
$previewTPL = t($_GET['preview']) ? t($_GET['preview']) : 'previewAd';
//$previewTPL = 'previewAd';
$this->display($previewTPL);
}