Explorar o código

1,公司动态修改

cloud hai 1 mes
pai
achega
d7d57d99f1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      application/api/controller/Index.php

+ 1 - 1
application/api/controller/Index.php

@@ -42,6 +42,7 @@ class Index extends Api
         $type = $this->request->param("type", "");
         $page = $this->request->param("page", 1);
         $limit = $this->request->param("limit", 10);
+        $type  = 1;
         $query = NewsModel::where(function ($query) use($type){
             if(isset($type) && $type != ""){
                 $query->where("type", $type);
@@ -119,7 +120,6 @@ class Index extends Api
             ->select();
         $this->success('ok', collection($list)->toArray());
     }
-
     public function factory_category(){
         $page = $this->request->param("page", 1);
         $limit = $this->request->param("limit", 10);