Просмотр исходного кода

articlesInAnthology 添加传参类型

visuddhinanda 1 неделя назад
Родитель
Сommit
691e12a2b2
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      api-v13/app/Services/ArticleService.php

+ 1 - 1
api-v13/app/Services/ArticleService.php

@@ -44,7 +44,7 @@ class ArticleService
         return $matches[1] ?? [];
         return $matches[1] ?? [];
     }
     }
 
 
-    public function articlesInAnthology($anthologyId)
+    public function articlesInAnthology(string $anthologyId)
     {
     {
         $inCollection = ArticleCollection::where('collect_id', $anthologyId)
         $inCollection = ArticleCollection::where('collect_id', $anthologyId)
             ->select('article_id')
             ->select('article_id')