更新
This commit is contained in:
33
app/controller/system/Index.php
Normal file
33
app/controller/system/Index.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | SentCMS [ WE CAN DO IT JUST THINK IT ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2013 http://www.tensent.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: molong <molong@tensent.cn> <http://www.tensent.cn>
|
||||
// +----------------------------------------------------------------------
|
||||
namespace app\controller\system;
|
||||
|
||||
use app\controller\Base;
|
||||
use app\services\system\ConfigService;
|
||||
|
||||
class Index extends Base{
|
||||
|
||||
public function version(){
|
||||
$this->data['data'] = 'v1.5.0';
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取配置列表
|
||||
*
|
||||
* @param ConfigService $service
|
||||
* @return void
|
||||
*/
|
||||
public function setting(ConfigService $service){
|
||||
$list = $service->getConfigField();
|
||||
|
||||
$this->data['data'] = $list;
|
||||
return $this->data;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user