更新
This commit is contained in:
@@ -39,7 +39,7 @@ class CategoryController extends Controller
|
|||||||
}
|
}
|
||||||
//院所新闻
|
//院所新闻
|
||||||
if ($category->id == 66) {
|
if ($category->id == 66) {
|
||||||
$articles = Article::ByCategory([66, 60, 61, 17, 26,])
|
$articles = Article::ByCategory([66, 60, 61, 17, 26, 77])
|
||||||
->where('status', 1)
|
->where('status', 1)
|
||||||
->latest('sort')
|
->latest('sort')
|
||||||
->latest('created_at')
|
->latest('created_at')
|
||||||
|
|||||||
@@ -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, 60, 61, 17, 26,])
|
->ByCategory([66, 60, 61, 17, 26, 77])
|
||||||
->latest('sort')
|
->latest('sort')
|
||||||
->latest()
|
->latest()
|
||||||
->take(7)
|
->take(7)
|
||||||
|
|||||||
Reference in New Issue
Block a user