AutoExpress.php 447 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace app\queue\redis;
  3. use Webman\RedisQueue\Consumer;
  4. /**
  5. * 自动呼叫快递
  6. */
  7. class AutoExpress implements Consumer
  8. {
  9. public $queue = "auto-express";
  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. }