21 lines
413 B
PHP
21 lines
413 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
namespace app\index\model;
|
|
|
|
/**
|
|
* 站点模型
|
|
* @mixin \think\Model
|
|
*/
|
|
class Site extends BaseModel
|
|
{
|
|
/**
|
|
* 获取当前品牌对应站点的域名
|
|
* @param int $platformId
|
|
* @return array
|
|
*/
|
|
public function getDomainsList(int $platformId):array
|
|
{
|
|
return $this->where('platform_id',$platformId)->column(['domain','language_id']);
|
|
}
|
|
}
|