Ver Fonte

修改接口:获取单页详情

FengR há 1 mês atrás
pai
commit
ab29bd64bd
1 ficheiros alterados com 2 adições e 3 exclusões
  1. 2 3
      app/JsonRpc/NewsService.php

+ 2 - 3
app/JsonRpc/NewsService.php

@@ -9840,10 +9840,9 @@ class NewsService implements NewsServiceInterface
 
       array_push($where, ['title', 'like', '%'.$data['title'].'%']);
     }
-    $result = SinglePage::
-    when(!empty($category) ,function ($query) use $category){
+    $result = SinglePage::when(!empty($category) ,function ($query) use ($category){
       $query->whereIn('id', $category);
-    }
+    })
     ->when(!empty($where), function ($query) use ($where) {
         $query->where($where);
     })