...
|
...
|
@@ -49,7 +49,7 @@ class Service_News extends Lib_Service |
|
|
* @param array $exceptTags
|
|
|
* @return int
|
|
|
*/
|
|
|
public function getTotal($tag, $exceptTags)
|
|
|
public function getTotal($tag, $exceptTags,$type)
|
|
|
{
|
|
|
$where = '1' ;
|
|
|
$exceptWhere = '1';
|
...
|
...
|
@@ -64,7 +64,11 @@ class Service_News extends Lib_Service |
|
|
$tag = addslashes($tag);
|
|
|
$where = '`tag` like ("'.$tag.'%")' ;
|
|
|
}
|
|
|
$where = ' WHERE '.$where .' OR is_video=1 AND '.$exceptWhere;
|
|
|
if($type==1) {
|
|
|
$where = ' WHERE ' . $where . ' OR is_video=1 AND ' . $exceptWhere;
|
|
|
}else{
|
|
|
$where = ' WHERE ' . $where . 'AND ' . $exceptWhere;
|
|
|
}
|
|
|
return self::service(self::ROUTER)->tag(self::$_tag)->fetchOne('getTotal', array(),array('where' => $where));
|
|
|
}
|
|
|
|
...
|
...
|
|