代码初始化
This commit is contained in:
26
application/api/controller/Theme.php
Normal file
26
application/api/controller/Theme.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user