院所新闻里去掉公告

This commit is contained in:
2022-01-14 10:13:04 +08:00
parent d0da1ef269
commit 890ae64980
2 changed files with 2 additions and 2 deletions

View File

@@ -39,7 +39,7 @@ class CategoryController extends Controller
} }
//院所新闻 //院所新闻
if ($category->id == 66) { if ($category->id == 66) {
$articles = Article::ByCategory([66, 67, 60, 61, 17, 26,]) $articles = Article::ByCategory([66, 60, 61, 17, 26,])
->where('status', 1) ->where('status', 1)
->latest('sort') ->latest('sort')
->latest('created_at') ->latest('created_at')

View File

@@ -20,7 +20,7 @@ class IndexController extends Controller
public function index() public function index()
{ {
$ysxw = Article::where('status', 1) $ysxw = Article::where('status', 1)
->ByCategory([66, 67, 60, 61, 17, 26,]) ->ByCategory([66, 60, 61, 17, 26,])
->latest('sort') ->latest('sort')
->latest() ->latest()
->take(7) ->take(7)