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

dep

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