songdb 6 years ago
parent
commit
47075817e2

+ 2 - 0
app/Http/Controllers/Wap/Book/BookController.php

@@ -98,6 +98,8 @@ class BookController extends BaseController
         if(!$this->checkUid()){
             return response()->error('WAP_NOT_LOGIN');
         }
+        // 上传的bid bug问题
+        if(strstr($bid,',')) $bid = explode(',',$bid)[0];
 
         if($this->uid == env('SPECIAL_USER_LOG',2)){
             myLog('special')->info('BookController::index bid is'.$bid);

+ 0 - 2
app/Http/Controllers/Wap/Book/ChapterController.php

@@ -304,8 +304,6 @@ class ChapterController extends BaseController
             return response()->error('WAP_NOT_LOGIN');
         }
         $this->en_bid = $bid;
-        // 上传的bid bug问题
-        if(strstr($bid,',')) $bid = explode(',',$bid)[0];
 
         $bid = Hashids::decode($bid)[0];
         //获取图书信息