|
@@ -271,7 +271,7 @@ class BookController extends BaseController
|
|
|
$reco_banner_type = ['FEMALE', 'PUBLIC'];
|
|
|
$channel = 2;
|
|
|
}
|
|
|
- $books = RecoBannerService::getByTypeStatic($reco_banner_type, 2);
|
|
|
+ $books = (new RecoBannerService)->getByType($reco_banner_type, 2);
|
|
|
$books->transform(function ($item) {
|
|
|
$result = $this->getBidCidFromUrl($item->redirect_url);
|
|
|
$item->bid = $result['bid'];
|