You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.2 KiB
41 lines
1.2 KiB
<?php
|
|
// +----------------------------------------------------------------------
|
|
// | Niucloud-admin 企业快速开发的多应用管理平台
|
|
// +----------------------------------------------------------------------
|
|
// | 官方网址:https://www.niucloud.com
|
|
// +----------------------------------------------------------------------
|
|
// | niucloud团队 版权所有 开源版本可自由商用
|
|
// +----------------------------------------------------------------------
|
|
// | Author: Niucloud Team
|
|
// +----------------------------------------------------------------------
|
|
|
|
namespace addon\hygl\app\api\controller;
|
|
|
|
use app\model\site\Site;
|
|
use core\base\BaseApiController;
|
|
use think\Response;
|
|
|
|
class TestController extends BaseApiController
|
|
{
|
|
/**
|
|
* Hello World
|
|
* @return Response
|
|
*/
|
|
public function index()
|
|
{
|
|
return success('SUCCESS', 'Hello World');
|
|
}
|
|
|
|
//获取站点信息
|
|
public function getSiteInfo(){
|
|
$site_id = $this->request->param('site_id','');
|
|
$site_name = Site::where('site_id',$site_id)->value('site_name');
|
|
$res = [
|
|
'site_id'=>$site_id,
|
|
'site_name'=>$site_name
|
|
];
|
|
return success($res);
|
|
}
|
|
|
|
|
|
}
|
|
|