Explorar o código

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

xielin %!s(int64=5) %!d(string=hai) anos
pai
achega
ddbaaccb19
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
     }