AutoPrint.php 439 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace app\queue\redis;
  3. use Webman\RedisQueue\Consumer;
  4. /**
  5. * 打印面单
  6. */
  7. class AutoPrint implements Consumer
  8. {
  9. public $queue = "auto-print";
  10. public $connection = "default";
  11. /**
  12. * @param $data
  13. * @return bool
  14. */
  15. public function consume($data): bool
  16. {
  17. try {
  18. } catch (\Throwable $throwable) {
  19. return true;
  20. }
  21. }
  22. }