Parcourir la source

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

zhuchengjie il y a 2 ans
Parent
commit
3ff78686f9
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  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下所有内容都不放快应用