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.
 
 
 

42 lines
828 B

<?php
namespace api\controllers;
use antgoods\goods\models\ars\Goods;
use yii\filters\auth\HttpBearerAuth;
use yii\helpers\ArrayHelper;
use yii\rest\Controller;
/**
* @author iron
* @email weiriron@gmail.com
*/
class SiteController extends Controller
{
public function behaviors()
{
return ArrayHelper::merge(parent::behaviors(), [
'authenticatior' => [
'class' => HttpBearerAuth::className(),
'except' => [],
]
]);
}
public function actions()
{
return [
'error' => [
'class' => 'yii\web\ErrorAction',
],
];
}
public function actionIndex()
{
//TODO 首页信息
\Yii::$app->visitor->DailyActive();
return '首页所有数据';
}
}