Procházet zdrojové kódy

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

xielin před 5 roky
rodič
revize
ddbaaccb19
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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;
     }