Explorar o código

修复bid bug问题

songdb %!s(int64=6) %!d(string=hai) anos
pai
achega
fe5602b751
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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);