src/Service/Filler.php
public function getCoverUrl($id, $type)
    {
        switch ($type) {
            case self::ITEM_TYPE_ANIMATION:
                return $this->browser->getHost().'/'.$type.'/img/'.(ceil($id / 1000) * 1000).'/'.$id.'/1.jpg';
            case self::ITEM_TYPE_CINEMA:
                return $this->browser->getHost().'/'.$type.'/img/'.(ceil($id / 10000) * 10000).'/'.$id.'/1.jpg';
            default:
                return;
        }
    }
public function getCoverUrl($id, $type)
    {
        switch ($type) {
            case self::ITEM_TYPE_ANIMATION:
                return $this->browser->getHost().'/'.$type.'/img/'.(ceil($id / 1000) * 1000).'/'.$id.'/1.jpg';
            case self::ITEM_TYPE_CINEMA:
                return $this->browser->getHost().'/'.$type.'/img/'.(ceil($id / 10000) * 10000).'/'.$id.'/1.jpg';
            default:
                return;
        }
    }
public function getCoverUrl ( $ id , $ type ) { switch ( $ type ) { case self :: ITEM_TYPE_ANIMATION : return $ this -> browser -> getHost ( ) . '/' . $ type . '/img/' . ( ceil ( $ id / 1000 ) * 1000 ) . '/' . $ id . '/1.jpg' ; case self :: ITEM_TYPE_CINEMA : return $ this -> browser -> getHost ( ) . '/' . $ type . '/img/' . ( ceil ( $ id / 10000 ) * 10000 ) . '/' . $ id . '/1.jpg' ; default : return ; } }
Get cover URL.

@param string $id
@param string $type

@return string|null
Get cover URL .