Browse Source

$id 可以为null

visuddhinanda 2 days ago
parent
commit
5fc1db6e21
1 changed files with 1 additions and 1 deletions
  1. 1 1
      api-v13/app/Http/Api/ChannelApi.php

+ 1 - 1
api-v13/app/Http/Api/ChannelApi.php

@@ -8,7 +8,7 @@ use Illuminate\Support\Facades\Log;
 
 class ChannelApi
 {
-    public static function getById(string $id)
+    public static function getById(?string $id)
     {
         if (!Str::isUuid($id)) {
             return false;