소스 검색

:bug: 没有$mode

visuddhinanda 3 년 전
부모
커밋
2b03b1011d
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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';
         }
         $channel = ChannelApi::getById($this->channel_uid);
+        $mode = $request->get("mode",'read');
         return [
             "id"=>$this->id,
             "book"=> $this->book_id,