Kaynağa Gözat

修改接口:获取单页详情

FengR 1 ay önce
ebeveyn
işleme
ab29bd64bd
1 değiştirilmiş dosya ile 2 ekleme ve 3 silme
  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);
     })