|
|
@@ -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);
|