Ver código fonte

1,公司动态修改

cloud 1 mês atrás
pai
commit
d7d57d99f1
1 arquivos alterados com 1 adições e 1 exclusões
  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);