| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- <?php
- /**
- * 重庆赤晓店信息科技有限公司
- * https://www.chixiaodian.com
- * Copyright (c) 2023 赤店商城 All rights reserved.
- */
- namespace app\modules\common\controllers;
- use app\models\AgentFrontBind;
- use app\models\OldUserTreePath;
- use app\models\Order;
- use app\models\Share;
- use app\models\ShareGroupMoney;
- use app\models\ShareGroupPurchaseParentLog;
- use app\models\User;
- use app\models\ShareHolder;
- use app\models\ShareHolderLevel;
- use app\models\UserTreePath;
- use app\modules\client\models\v1\ShareQrcodeForm;
- use app\utils\Share\BonusPool;
- use yii\filters\AccessControl;
- use yii\web\Controller;
- use yii\filters\VerbFilter;
- class DefaultController extends Controller
- {
- /**
- * {@inheritdoc}
- */
- public function behaviors()
- {
- return [
- 'verbs' => [
- 'class' => VerbFilter::class,
- 'actions' => [
- 'logout' => ['post'],
- ],
- ],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function actions()
- {
- return [
- 'error' => [
- 'class' => 'yii\web\ErrorAction',
- 'layout' => false,
- ],
- 'captcha' => [
- 'class' => 'yii\captcha\CaptchaAction',
- 'fixedVerifyCode' => YII_ENV_TEST ? 'testme' : null,
- ],
- ];
- }
- /**
- * default action
- *
- * @return string
- */
- public function actionIndex()
- {
- return $this->redirect('/admin');
- }
- public function actionResetProd()
- {
- return $this->asJson(\Yii::$app->resetProd());
- }
- public function actionSetCloudAccount()
- {
- $key = \Yii::$app->request->get('key');
- return $this->asJson(\Yii::$app->setCloudAccount($key));
- }
- }
|