23 lines
368 B
PHP
Executable File
23 lines
368 B
PHP
Executable File
<?php
|
|
|
|
namespace App\Model\Zq;
|
|
|
|
use App\Model\BaseModel;
|
|
use App\Service\JingcaiLogoService;
|
|
|
|
class ZqTeam extends BaseModel
|
|
{
|
|
|
|
protected $appends = [
|
|
'logo_url'
|
|
];
|
|
|
|
public function getLogoUrlAttribute()
|
|
{
|
|
if (!$this->team_id) {
|
|
return '';
|
|
}
|
|
return JingcaiLogoService::zqCompetition($this->team_id);
|
|
}
|
|
}
|