Queue.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | ThinkAdmin
  4. // +----------------------------------------------------------------------
  5. // | 版权所有 2014~2019 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
  6. // +----------------------------------------------------------------------
  7. // | 官方网站: http://demo.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\admin\queue;
  15. use think\console\Input;
  16. use think\console\Output;
  17. /**
  18. * 基础任务基类
  19. * Class Queue
  20. * @package app\admin\queue
  21. */
  22. abstract class Queue
  23. {
  24. /**
  25. * 判断是否为WIN环境
  26. * @return boolean
  27. */
  28. protected function isWin()
  29. {
  30. return PATH_SEPARATOR === ';';
  31. }
  32. abstract function execute(Input $input, Output $output, array $data);
  33. }