|
@@ -111,6 +111,10 @@ class BookController extends BaseController
|
|
|
*/
|
|
|
private function isNeedCharge(int $bid, $last_chapter, $book_info)
|
|
|
{
|
|
|
+ $is_free = BookConfigService::judgeBookIsFree($bid);
|
|
|
+ if ($is_free) {
|
|
|
+ return $is_free;
|
|
|
+ }
|
|
|
switch ($book_info->charge_type) {
|
|
|
case 'BOOK':
|
|
|
$price = $this->getPrice($book_info);
|