Explorar o código

改用包名判断

wangzq %!s(int64=2) %!d(string=hai) anos
pai
achega
e874d276ba
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      app/Http/Controllers/QuickApp/Book/BookController.php

+ 4 - 2
app/Http/Controllers/QuickApp/Book/BookController.php

@@ -372,8 +372,10 @@ class BookController extends BaseController
 
 
     public function library(Request $request)
     public function library(Request $request)
     {
     {
-        $channel_id = $request->input('distribution_channel_id',0);
-        if (in_array($channel_id,[9487,9390])){
+        $package     = $request->header('x-package', '');
+
+
+        if (in_array($package ,["com.app.kyy.dmzyd","com.app.kyy.tths"])){
             return  $this->getSpecialLibrary($request);
             return  $this->getSpecialLibrary($request);
         }
         }
         $where                = [];
         $where                = [];