Преглед на файлове

Merge branch 'develop' of http://git.caihongxingqiu.net/rainbow/config-service into develop

xielin преди 5 години
родител
ревизия
ddbaaccb19
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      app/Repositories/StarNewsRepository.php

+ 1 - 1
app/Repositories/StarNewsRepository.php

@@ -24,7 +24,7 @@ class StarNewsRepository
                 ->where('id',$request['id'])->orderBy('id', 'desc')->first();
         }
         $this->starNews = $this->starNews
-            ->orderBy('id', 'desc')->get();
+            ->where('status',1)->orderBy('sort', 'asc')->get();
 
         return $this->starNews;
     }