jingcai-php/app/Model/Lq/JclqCompetition.php

32 lines
529 B
PHP
Executable File

<?php
/**
* @createtime 2023/4/26
* @author wild
* @copyright PhpStorm
*/
namespace App\Model\Lq;
use App\Enums\SaleState;
use App\Model\BaseModel;
use App\Service\JingcaiLogoService;
use Illuminate\Support\Arr;
class JclqCompetition extends BaseModel
{
protected $appends = [
'logo_url'
];
public function getLogoUrlAttribute()
{
if (!$this->competition_id) {
return '';
}
return JingcaiLogoService::lqCompetition($this->competition_id);
}
}