Wang Chen 4 年之前
父節點
當前提交
c0b4b2780f
共有 1 個文件被更改,包括 4 次插入6 次删除
  1. 4 6
      app/Http/Controllers/QuickApp/Book/ChapterController.php

+ 4 - 6
app/Http/Controllers/QuickApp/Book/ChapterController.php

@@ -97,12 +97,10 @@ class ChapterController extends BaseController
         }
 
         if ($chapter->is_vip == 0) {
-            if ($chapter->sequence > 1) {
-                ReadRecordService::addReadRecord([
-                    'uid' => $this->uid, 'bid' => $bid, 'book_name' => $book_info->book_name,
-                    'cid' => $cid, 'chapter_name' => $chapter->name
-                ]);
-            }
+            ReadRecordService::addReadRecord([
+                'uid' => $this->uid, 'bid' => $bid, 'book_name' => $book_info->book_name,
+                'cid' => $cid, 'chapter_name' => $chapter->name
+            ]);
             return response()->item(new ChapterTransformer, $this->getChapter($bid, $cid, $chapter));
         }