[ '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); } }