Parcourir la source

修复bid bug问题

songdb il y a 6 ans
Parent
commit
fe5602b751
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      app/Http/Controllers/Wap/Book/ChapterController.php

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

@@ -304,6 +304,9 @@ 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];
         //获取图书信息
         $book_info = BookConfigService::getBookById($bid);