chore: 添加静态资源文件和版本配置文件

添加大量图片、字体、音频等静态资源文件,包括用户界面图片、模板文件和安装界面素材
添加系统版本配置文件(.version)和常量定义文件(.constant)
更新供应商依赖文件,包括Symfony VarDumper组件和相关许可证文件
添加验证码配置文件(captcha.php)和.gitignore规则
This commit is contained in:
2026-03-06 20:14:23 +08:00
commit c9a98f342c
4485 changed files with 490986 additions and 0 deletions

View File

@@ -0,0 +1,54 @@
<?php
namespace app\dao\system;
use app\dao\BaseDao;
use app\model\system\SystemRecommend;
class SystemRecommendDao extends BaseDao
{
/**
* 设置模型名
* @return string
*/
protected function setModel(): string
{
return SystemRecommend::class;
}
/**
* 获取条件查询模型
* @param array $where 查询条件
* @return \think\Model
*/
public function getConditionModel($where)
{
return $this->getModel();
}
/**
* 获取推荐列表
* @param array $where 查询条件
* @param int $page 页码
* @param int $limit 每页数量
* @param string $field 查询字段
* @param string $order 排序
* @return array
*/
public function recommendList($where, $page = 0, $limit = 0, $field = '*', $order = 'id desc')
{
return $this->getConditionModel($where)->when($page != 0, function ($query) use ($page, $limit) {
$query->page($page, $limit);
})->field($field)->order($order)->select()->toArray();
}
/**
* 获取推荐数量
* @param array $where 查询条件
* @return int
*/
public function recommendCount($where)
{
return $this->getConditionModel($where)->count();
}
}