Auth.php 511 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: xurongyao <763569752@qq.com>
  5. * Date: 2019/11/23 3:47 PM
  6. */
  7. namespace crmeb\services\auth;
  8. use crmeb\basic\BaseManager;
  9. use think\facade\Config;
  10. class Auth extends BaseManager
  11. {
  12. /**
  13. * 空间名
  14. * @var string
  15. */
  16. protected $namespace = '\\crmeb\\services\\auth\\storage\\';
  17. /**
  18. * 默认驱动
  19. * @return mixed
  20. */
  21. protected function getDefaultDriver()
  22. {
  23. return Config::get('auth.default', 'wechat');
  24. }
  25. }