Browse Source

Merge pull request #2407 from visuddhinanda/development

Development
visuddhinanda 4 days ago
parent
commit
4a779a043d
1 changed files with 1 additions and 1 deletions
  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);
         $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;
         $Sent = new CorpusController();
         $tpl =