Commit 5fc25aa0 authored by 章建武's avatar 章建武

dep

parent 29e7b723
...@@ -63,13 +63,13 @@ class ArticleController extends Controller ...@@ -63,13 +63,13 @@ class ArticleController extends Controller
$item_trends = ArticleInfo::query()->where('type', '=', NewsType::ITEM_TRENDS) $item_trends = ArticleInfo::query()->where('type', '=', NewsType::ITEM_TRENDS)
->where('status', '=', 0) ->where('status', '=', 0)
->where('language_type', '=', $language_type) ->where('language_type', '=', $language_type)
->orderBy('num', 'asc') ->orderBy('num', 'desc')
->limit(2)->get(); ->limit(2)->get();
$item_trends2 = ArticleInfo::query()->where('type', '=', NewsType::ITEM_TRENDS) $item_trends2 = ArticleInfo::query()->where('type', '=', NewsType::ITEM_TRENDS)
->where('status', '=', 0) ->where('status', '=', 0)
->where('language_type', '=', $language_type) ->where('language_type', '=', $language_type)
// ->whereNotIn('id', $item_trends->pluck('id')->toArray()) // ->whereNotIn('id', $item_trends->pluck('id')->toArray())
->orderBy('num', 'desc') ->orderBy('num', 'asc')
->limit(3)->get(); ->limit(3)->get();
$navigation = IndexNavigation::query() $navigation = IndexNavigation::query()
......
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