| 1234567891011121314151617181920212223242526272829 |
- <?php
- namespace mobile\controllers;
- use biz\user\services\UserService;
- use common\components\token;
- use Yii;
- use yii\db\Exception;
- use yii\web\Controller;
- class MainController extends PublicController
- {
-
- public $enableCsrfValidation = false;
-
- public function actionIndex()
- {
- $host = Yii::$app->request->getHostInfo();
- $fullUrl = Yii::$app->request->url;
- $token = strpos($fullUrl, 'token') === false ? '' : 'hasToken';
- return $this->renderPartial('index', ['host' => $host, 'token' => $token]);
- }
-
- public function actionJwt()
- {
-
- }
- }
|