init: 项目初始代码

This commit is contained in:
2026-10-14 14:00:29 +08:00
commit cc434cf89f
464 changed files with 66984 additions and 0 deletions

20
app/index/model/Site.php Normal file
View 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']);
}
}