Răsfoiți Sursa

:bug: $mode is array

visuddhinanda 1 lună în urmă
părinte
comite
2fde8cecf7
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      api-v13/app/Http/Resources/SentSimResource.php

+ 1 - 1
api-v13/app/Http/Resources/SentSimResource.php

@@ -23,7 +23,7 @@ class SentSimResource extends JsonResource
         //获取实际句子信息
         //获取实际句子信息
         $sent = PaliSentence::find($this->sent2);
         $sent = PaliSentence::find($this->sent2);
         $channels = explode(',', $request->input('channels'));
         $channels = explode(',', $request->input('channels'));
-        $mode = explode(',', $request->input('mode', 'read'));
+        $mode = $request->input('mode', 'read');
         $sentId = $sent->book . '-' . $sent->paragraph . '-' . $sent->word_begin . '-' . $sent->word_end;
         $sentId = $sent->book . '-' . $sent->paragraph . '-' . $sent->word_begin . '-' . $sent->word_end;
         $Sent = new CorpusController();
         $Sent = new CorpusController();
         $tpl =
         $tpl =