Kaynağa Gözat

修复bid bug问题

songdb 6 yıl önce
ebeveyn
işleme
fe5602b751

+ 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);