1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php
- namespace app\admin\controller;
- use ba\Random;
- use Throwable;
- use think\facade\Db;
- use app\common\controller\Backend;
- class Ot extends Backend
- {
- /**
- * 模型
- * @var object
- * @phpstan-var AssetModel
- */
- // protected object $model;
- // protected array $noNeedLogin = ['index'];
- // protected array|string $preExcludeFields = ['create_time', 'update_time', 'password', 'salt', 'login_failure', 'last_login_time', 'last_login_ip'];
- // protected array|string $quickSearchField = ['username', 'nickname'];
- /**
- * 开启数据限制
- */
- //protected string|int|bool $dataLimit = 'allAuthAndOthers';
- // protected string $dataLimitField = 'id';
- public function initialize(): void
- {
- parent::initialize();
-
- }
- /**
- * 查看
- * @throws Throwable
- */
- public function index(): void
- {
- //halt('23');
- halt($this->auth->id);
- }
-
-
- }
|