ソースを参照

:art: formatting

visuddhinanda 2 年 前
コミット
1b6487664b
1 ファイル変更2 行追加2 行削除
  1. 2 2
      app/Http/Resources/TocResource.php

+ 2 - 2
app/Http/Resources/TocResource.php

@@ -36,7 +36,7 @@ class TocResource extends JsonResource
             }else{
             }else{
                 $channels = explode(',',$request->get('channels'));
                 $channels = explode(',',$request->get('channels'));
             }
             }
-            $title= ProgressChapter::where('book',$this->book)
+            $title = ProgressChapter::where('book',$this->book)
                                 ->where('para',$this->paragraph)
                                 ->where('para',$this->paragraph)
                                 ->where('channel_id',$channels[0])
                                 ->where('channel_id',$channels[0])
                                 ->whereNotNull('title')
                                 ->whereNotNull('title')
@@ -46,7 +46,7 @@ class TocResource extends JsonResource
             }
             }
             //查询完成度
             //查询完成度
             foreach ($channels as $key => $channel) {
             foreach ($channels as $key => $channel) {
-                $progress= ProgressChapter::where('book',$this->book)
+                $progress = ProgressChapter::where('book',$this->book)
                                 ->where('para',$this->paragraph)
                                 ->where('para',$this->paragraph)
                                 ->where('channel_id',$channel)
                                 ->where('channel_id',$channel)
                                 ->value('progress');
                                 ->value('progress');