Ot.php 951 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. namespace app\admin\controller;
  3. use ba\Random;
  4. use Throwable;
  5. use think\facade\Db;
  6. use app\common\controller\Backend;
  7. class Ot extends Backend
  8. {
  9. /**
  10. * 模型
  11. * @var object
  12. * @phpstan-var AssetModel
  13. */
  14. // protected object $model;
  15. // protected array $noNeedLogin = ['index'];
  16. // protected array|string $preExcludeFields = ['create_time', 'update_time', 'password', 'salt', 'login_failure', 'last_login_time', 'last_login_ip'];
  17. // protected array|string $quickSearchField = ['username', 'nickname'];
  18. /**
  19. * 开启数据限制
  20. */
  21. //protected string|int|bool $dataLimit = 'allAuthAndOthers';
  22. // protected string $dataLimitField = 'id';
  23. public function initialize(): void
  24. {
  25. parent::initialize();
  26. }
  27. /**
  28. * 查看
  29. * @throws Throwable
  30. */
  31. public function index(): void
  32. {
  33. //halt('23');
  34. halt($this->auth->id);
  35. }
  36. }