Commit 29e7b723 authored by 章建武's avatar 章建武

dep

parent 35be1ce5
...@@ -48,7 +48,7 @@ class ArticleController extends Controller ...@@ -48,7 +48,7 @@ class ArticleController extends Controller
->first(); ->first();
$group_news1 = ArticleInfo::query()->where('type', '=', NewsType::GROUP_NEWS) $group_news1 = ArticleInfo::query()->where('type', '=', NewsType::GROUP_NEWS)
->where('language_type', '=', $language_type) ->where('language_type', '=', $language_type)
->orderBy('id', 'desc') ->orderBy('num', 'asc')
->where('status', '=', 0) ->where('status', '=', 0)
->limit(3)->get(); ->limit(3)->get();
...@@ -57,7 +57,7 @@ class ArticleController extends Controller ...@@ -57,7 +57,7 @@ class ArticleController extends Controller
->where('status', '=', 0) ->where('status', '=', 0)
->where('type', 2) ->where('type', 2)
// ->whereNotIn('id', $group_news1->pluck('id')->toArray()) // ->whereNotIn('id', $group_news1->pluck('id')->toArray())
->orderBy('release_time', 'desc') ->orderBy('num', 'desc')
->limit(2)->get(); ->limit(2)->get();
$item_trends = ArticleInfo::query()->where('type', '=', NewsType::ITEM_TRENDS) $item_trends = ArticleInfo::query()->where('type', '=', NewsType::ITEM_TRENDS)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment