Browse Source

:bug: 没有$mode

visuddhinanda 3 years ago
parent
commit
2b03b1011d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/Http/Resources/SentPrResource.php

+ 1 - 0
app/Http/Resources/SentPrResource.php

@@ -25,6 +25,7 @@ class SentPrResource extends JsonResource
             $role = 'owner';
             $role = 'owner';
         }
         }
         $channel = ChannelApi::getById($this->channel_uid);
         $channel = ChannelApi::getById($this->channel_uid);
+        $mode = $request->get("mode",'read');
         return [
         return [
             "id"=>$this->id,
             "id"=>$this->id,
             "book"=> $this->book_id,
             "book"=> $this->book_id,