Index.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | ThinkAdmin
  4. // +----------------------------------------------------------------------
  5. // | 版权所有 2014~2021 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
  6. // +----------------------------------------------------------------------
  7. // | 官方网站: https://thinkadmin.top
  8. // +----------------------------------------------------------------------
  9. // | 开源协议 ( https://mit-license.org )
  10. // +----------------------------------------------------------------------
  11. // | gitee 代码仓库:https://gitee.com/zoujingli/ThinkAdmin
  12. // | github 代码仓库:https://github.com/zoujingli/ThinkAdmin
  13. // +----------------------------------------------------------------------
  14. namespace app\index\controller;
  15. use app\wechat\service\AutoService;
  16. use think\admin\Controller;
  17. /**
  18. * Class Index
  19. * @package app\index\controller
  20. */
  21. class Index extends Controller
  22. {
  23. public function index()
  24. {
  25. $this->redirect(sysuri('admin/login/index'));
  26. }
  27. public function test()
  28. {
  29. dump(AutoService::instance()->parseTimeString('00小时00分01秒'));
  30. }
  31. }