Pārlūkot izejas kodu

添加format参数

visuddhinanda 2 gadi atpakaļ
vecāks
revīzija
fd3f14926a
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. 3 1
      app/Http/Resources/SentResource.php

+ 3 - 1
app/Http/Resources/SentResource.php

@@ -58,7 +58,9 @@ class SentResource extends JsonResource
                                              null,
                                              $mode,
                                              $channel['type'],
-                                             $this->content_type);
+                                             $this->content_type,
+                                             $request->get('format','react')
+                                            );
         }
         if($request->get('mode') === "edit" || $request->get('mode') === "wbw"){
             $data['suggestionCount'] = SuggestionApi::getCountBySent($this->book_id,