cxfoot/modules/admin/controllers/DefaultController.php
2023-10-24 14:54:18 +08:00

66 lines
1.3 KiB
PHP

<?php
/**
* @author Any
* @description KISS
* @date 2020-11-4
* @version 1.0.0
*
* _____LOG_____
*
*/
namespace app\modules\admin\controllers;
use app\modules\admin\models\IndexForm;
use yii\helpers\VarDumper;
use app\modules\admin\behaviors\LoginBehavior;
class DefaultController extends Controller
{
public function behaviors()
{
return array_merge(parent::behaviors(), [
'login' => [
'class' => LoginBehavior::className(),
],
]);
}
public function actionIndex()
{
return $this->render('index',[
]);
}
public function actionTodo()
{
return $this->render('todo');
}
/**
* @ Author : Lw
* @ CreateTime : 2022-11-19
* @ Info : 数据
*/
public function actionGetData(){
$obj = new IndexForm();
$obj->attributes = \Yii::$app->request->get();
$data = $obj->actionGetData();
return $this->responseHandler($data);
}
/**
* @ Author : Lw
* @ CreateTime : 2022-11-19
* @ Info : 地图数据
*/
public function actionGetDtData(){
$obj = new IndexForm();
$obj->attributes = \Yii::$app->request->get();
$data = $obj->actionGetDtData();
return $this->responseHandler($data);
}
}