Commit b2df31b3 authored by 章建武's avatar 章建武

dep

parent dadd06a4
...@@ -59,6 +59,7 @@ class IndexController extends Controller ...@@ -59,6 +59,7 @@ class IndexController extends Controller
$article1 = ArticleInfo::query() $article1 = ArticleInfo::query()
->where('language_type', '=', $language_type) ->where('language_type', '=', $language_type)
->where(['status'=>0])
->limit(1) ->limit(1)
->orderBy('created_at','desc') ->orderBy('created_at','desc')
->first(); ->first();
...@@ -66,17 +67,19 @@ class IndexController extends Controller ...@@ -66,17 +67,19 @@ class IndexController extends Controller
$article2 = ArticleInfo::query() $article2 = ArticleInfo::query()
->where('language_type', '=', $language_type) ->where('language_type', '=', $language_type)
->limit(1) ->limit(1)
->where(['status'=>0])
->orderBy('updated_at','desc') ->orderBy('updated_at','desc')
->first(); ->first();
$alert_t = ArticleInfo::query() $alert_t = ArticleInfo::query()
->where('language_type', '=', $language_type) ->where('language_type', '=', $language_type)
->orderBy('id','asc') ->orderBy('updated_at','asc')
->where(['status'=>0])
->limit(1) ->limit(1)
->first(); ->first();
$alert_b = ArticleInfo::query() $alert_b = ArticleInfo::query()
->where('language_type', '=', $language_type) ->where('language_type', '=', $language_type)
->orderBy('release_time','desc') ->orderBy('release_time','asc')
->where(['status'=>0]) ->where(['status'=>0])
->limit(4) ->limit(4)
->get(); ->get();
......
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