@@ -72,7 +72,7 @@ class ArticleService extends BaseService
->where(function ($query) use ($type) {
if ($type>0) {
$query->where('a.type', $type);
- }if ($type<0) {
+ } else if ($type<0) {
$query->whereIn('a.type', [1,2]);
} else {
$query->where('a.type','>=',3)->where('a.type','<',9);