Files
yusheng-php/application/api/controller/Theme.php
2025-08-07 20:21:47 +08:00

27 lines
485 B
PHP

<?php
namespace app\api\controller;
use think\Controller;
use think\Db;
class Theme extends controller
{
public function _initialize()
{
//允许跨域
header('Access-Control-Allow-Origin: *');
}
/*
* 启动页列表
* @return array
*
*/
public function get_theme_data()
{
$reslut = DB::name('vs_theme')->where('is_active',1)->where('delete_time',0)->find();
return V(1,'操作成功', $reslut);
}
}