51 lines
1.3 KiB
PHP
Executable File
51 lines
1.3 KiB
PHP
Executable File
<?php
|
|
|
|
namespace App\Service;
|
|
|
|
use App\Enums\PlayType;
|
|
use App\Exceptions\JingCaiException;
|
|
use App\Model\Lq\JclqOdds;
|
|
use App\Model\Zq\JczqOdds;
|
|
use App\Utils\ThrowException;
|
|
use Illuminate\Support\Arr;
|
|
|
|
|
|
class JingcaiLogoService
|
|
{
|
|
// zq
|
|
private const ZQ_COMPETITION = 'http://img.aistat.cn/competitions/%s.png';
|
|
private const ZQ_TEAM = 'http://img.aistat.cn/teams/%s.png';
|
|
private const ZQ_COUNTRY_LARGE = 'http://img.aistat.cn/countries-large/%s.png';
|
|
private const ZQ_COUNTRY_SMALL = 'http://img.aistat.cn/countries/%s.png';
|
|
|
|
// lq
|
|
private const LQ_COMPETITION = 'http://basketball.aistat.cn/competitions/%s.png';
|
|
private const LQ_TEAM = 'http://basketball.aistat.cn/teams/%s.png';
|
|
|
|
public static function lqCompetition($id)
|
|
{
|
|
return sprintf(self::LQ_COMPETITION, $id);
|
|
}
|
|
public static function lqTeam($id)
|
|
{
|
|
return sprintf(self::LQ_TEAM, $id);
|
|
}
|
|
|
|
public static function zqCompetition($id)
|
|
{
|
|
return sprintf(self::ZQ_COMPETITION, $id);
|
|
}
|
|
public static function zqTeam($id)
|
|
{
|
|
return sprintf(self::ZQ_TEAM, $id);
|
|
}
|
|
public static function zqCountryLarge($enName)
|
|
{
|
|
return sprintf(self::ZQ_COUNTRY_LARGE, $enName);
|
|
}
|
|
public static function zqCountry($enName)
|
|
{
|
|
return sprintf(self::ZQ_COUNTRY_SMALL, $enName);
|
|
}
|
|
}
|