Index.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | Think.Admin
  4. // +----------------------------------------------------------------------
  5. // | 版权所有 2014~2017 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
  6. // +----------------------------------------------------------------------
  7. // | 官方网站: http://think.ctolog.com
  8. // +----------------------------------------------------------------------
  9. // | 开源协议 ( https://mit-license.org )
  10. // +----------------------------------------------------------------------
  11. // | github开源项目:https://github.com/zoujingli/Think.Admin
  12. // +----------------------------------------------------------------------
  13. namespace app\index\controller;
  14. use think\Controller;
  15. /**
  16. * 网站入口控制器
  17. * Class Index
  18. * @package app\index\controller
  19. * @author Anyon <zoujingli@qq.com>
  20. * @date 2017/04/05 10:38
  21. */
  22. class Index extends Controller
  23. {
  24. /**
  25. * 网站入口
  26. */
  27. public function index()
  28. {
  29. $this->redirect('@admin');
  30. }
  31. public function qrc()
  32. {
  33. $wechat = load_wechat('Extends');
  34. for ($i = 10; $i < 90; $i++) {
  35. $qrc = $wechat->getQRCode($i, 1);
  36. print_r($qrc);
  37. }
  38. }
  39. }