zz 5 年之前
父節點
當前提交
1d94cd1e28
共有 1 個文件被更改,包括 3 次插入12 次删除
  1. 3 12
      app/Http/Controllers/QuickApp/Book/ChapterController.php

+ 3 - 12
app/Http/Controllers/QuickApp/Book/ChapterController.php

@@ -273,10 +273,7 @@ class ChapterController extends BaseController
                 'uid' => $this->uid, 'bid' => $bid, 'book_name' => $book_info->book_name,
                 'cid' => $cid, 'chapter_name' => $chapter->name
             ]);
-            //用户标签
-            if ($chapter->sequence >= 20) {
-                $this->addTag($book_info);
-            }
+
             return response()->item(new ChapterTransformer, $this->getChapter($bid, $cid, $chapter));
         }
 
@@ -286,10 +283,7 @@ class ChapterController extends BaseController
                 'uid' => $this->uid, 'bid' => $bid, 'book_name' => $book_info->book_name,
                 'cid' => $cid, 'chapter_name' => $chapter->name
             ]);
-            //用户标签
-            if ($chapter->sequence >= 20) {
-                $this->addTag($book_info);
-            }
+
             return response()->item(new ChapterTransformer, $this->getChapter($bid, $cid, $chapter));
         }
 
@@ -355,10 +349,7 @@ class ChapterController extends BaseController
                 'uid' => $this->uid, 'bid' => $bid, 'book_name' => $book_info->book_name,
                 'cid' => $cid, 'chapter_name' => $chapter->name
             ]);
-            //用户标签
-            if ($chapter->sequence >= 20) {
-                $this->addTag($book_info);
-            }
+
             return response()->item(new ChapterTransformer, $this->getChapter($bid, $cid, $chapter));
         } else {