linwu 1 năm trước cách đây
mục cha
commit
bf91f3155e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/Http/Controllers/Web/HomeController.php

+ 1 - 1
app/Http/Controllers/Web/HomeController.php

@@ -286,7 +286,7 @@ class HomeController extends WebBaseController
 //        $rcinfos = $this->policyService->getRcInfosByIndex();
 
         //招考系统
-        $recruit = Recruit::where([['status', '=', 1]])->orderBy(DB::raw('field(current,1,2,3,4,5,6,7,8,9,0)'))->orderBy('updated_at','desc')->limit(4)->get();
+        $recruit = Recruit::where([['status', '=', 1]])->orderBy('ordid','desc')->orderBy(DB::raw('field(current,1,2,3,4,5,6,7,8,9,0)'))->orderBy('updated_at','desc')->limit(4)->get();
         if (!$recruit->isEmpty()) {
             foreach ($recruit as $k => $v) {
                 $recruit[$k] = Recruit::parse_index($v);