Browse Source

'包年用户可以继续阅读下架书籍'

zhuchengjie 2 years ago
parent
commit
3ff78686f9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/Http/Controllers/QuickApp/Book/ChapterController.php

+ 2 - 2
app/Http/Controllers/QuickApp/Book/ChapterController.php

@@ -180,11 +180,11 @@ class ChapterController extends BaseController
                 }else{
                     $res = false;
                 }
-                if ($res) {
+                if (!$res) {
                     ReadRecordService::delReadRecordStatic($this->uid,[$bid]);
+                    return response()->error('QAPP_OFF_SHELF');
                 }
             }
-            return response()->error('QAPP_OFF_SHELF');
         }
 
         //wutong,wutong2,wutong3下所有内容都不放快应用