getUserModel()->getUserInfo($user_id); $channel_id = $userInfo['channel_id'] ?? 0; if (empty($channel_id)) { $is_water = false; } else { $channel_id = AdminService::instance()->getAdminExtendModel()->getChannelId($channel_id); $is_water = WaterBookService::instance()->showBook($channel_id, $user_id, Ip::ip()); } } else { $is_water = false; } $books = model('BookCategory')::booklist($book_category_id, $type, $page, $is_water); return json($books); } }