[ 'class' => HttpBearerAuth::className(), 'except' => [], ] ]); } public function actions() { return [ 'error' => [ 'class' => 'yii\web\ErrorAction', ], ]; } public function actionIndex() { //TODO 首页信息 \Yii::$app->userLogic->DailyActive(); return '首页所有数据'; } }