init: 项目初始代码
This commit is contained in:
20
app/index/model/Site.php
Normal file
20
app/index/model/Site.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?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']);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user