浏览代码

快应用 增加 dingtian dingtian3屏蔽cp

zhoulj 3 年之前
父节点
当前提交
4487cfc45a

+ 1 - 1
app/Http/Controllers/QuickApp/Book/BookController.php

@@ -31,7 +31,7 @@ class BookController extends BaseController
             return response()->error('QAPP_SYS_ERROR');
         }
         //yuyuedu、xinghe  快应用这两个cp的书屏蔽下
-        if(in_array($book_info->cp_source,['yuyuedu','xinghe'])){
+        if(in_array($book_info->cp_source,['yuyuedu','xinghe','dingtian','dingtian3'])){
             return response()->error('QAPP_SYS_ERROR');
         }
 

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

@@ -132,7 +132,7 @@ class ChapterController extends BaseController
             return response()->error('QAPP_SYS_ERROR');
 
         //yuyuedu、xinghe  快应用这两个cp的书屏蔽下
-        if(in_array($book_info->cp_source,['yuyuedu','xinghe'])){
+        if(in_array($book_info->cp_source,['yuyuedu','xinghe','dingtian','dingtian3'])){
             return response()->error('QAPP_SYS_ERROR');
         }
 

+ 2 - 2
app/Modules/Book/Models/BookConfig.php

@@ -162,7 +162,7 @@ class BookConfig extends Model
                 }
             }
         }
-        $res->whereNotIn('book_configs.cp_source',['wutong','wutong2','wutong3','youyan2','yuyuedu','xinghe']);
+        $res->whereNotIn('book_configs.cp_source',['wutong','wutong2','wutong3','youyan2','yuyuedu','xinghe','dingtian','dingtian3']);
         return $res->orderBy($order[0], $order[1])->orderBy('book_configs.updated_at', 'desc')->paginate($page_size);
     }
 
@@ -224,7 +224,7 @@ class BookConfig extends Model
             $field = 'bid,' . $str;
             $res->orderBy(DB::raw('field(' . $field . ')'));
         }
-        $res->whereNotIn('book_configs.cp_source',['wutong','wutong2','wutong3','youyan2','yuyuedu','xinghe']);
+        $res->whereNotIn('book_configs.cp_source',['wutong','wutong2','wutong3','youyan2','yuyuedu','xinghe','dingtian','dingtian3']);
 
         return $res->limit(30)->get();
     }