...
|
...
|
@@ -203,11 +203,14 @@ EOT; |
|
|
if($this->_platform == 'android' || $this->_platform == 'iphone')
|
|
|
{
|
|
|
$exceptTags = array('视频');
|
|
|
$news[] = Facade_News::getSameNewsById($id, $exceptTags);
|
|
|
$temp = Facade_News::getList(array(), 0, 5, $exceptTags);
|
|
|
unset($temp[$id]);
|
|
|
$news = array_merge($news, $temp);
|
|
|
$news = array_slice(array_filter($news), 0, 3);
|
|
|
$temp = Facade_News::getSameNewsById($id, $exceptTags);
|
|
|
$temp2 = Facade_News::getLatestNews(array(), 0, 5, $exceptTags);
|
|
|
unset($temp2[$id]);
|
|
|
if(!empty($temp))
|
|
|
{
|
|
|
$news = array($temp['id'] => $temp);
|
|
|
}
|
|
|
$news = array_slice(array_filter($news + $temp2), 0, 3);
|
|
|
}
|
|
|
$info['title'] = strip_tags($info['title']);
|
|
|
$info['pics'] = array_filter(explode('|', $info['pics']));
|
...
|
...
|
@@ -231,11 +234,14 @@ EOT; |
|
|
$tag = '视频';
|
|
|
$exceptTags = array('手机视频');
|
|
|
$recom = array();
|
|
|
$recom[] = Facade_News::getSameNewsById($id, $exceptTags);
|
|
|
$temp = Facade_News::getList(array(), 0, 5, $exceptTags);
|
|
|
unset($temp[$id]);
|
|
|
$recom = array_merge($recom, $temp);
|
|
|
$recom = array_slice(array_filter($recom), 0, 3);
|
|
|
$temp = Facade_News::getSameNewsById($id, $exceptTags);
|
|
|
$temp2 = Facade_News::getLatestNews(array(), 0, 5, $exceptTags);
|
|
|
unset($temp2[$id]);
|
|
|
if(!empty($temp))
|
|
|
{
|
|
|
$recom = array($temp['id'] => $temp);
|
|
|
}
|
|
|
$recom = array_slice(array_filter($recom + $temp2), 0, 3);
|
|
|
$hotVideo = array_values(Facade_News::getListByDateHits($tag, 0, 5, $exceptTags));
|
|
|
$lastVideo = array_values(Facade_News::getLatestNews($tag, 0, 5, $exceptTags));
|
|
|
$list['recom'] = $recom;
|
...
|
...
|
|