TiktokTrack.php 472 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace app\queue\redis;
  3. use Webman\RedisQueue\Consumer;
  4. use App\services\TrackService;
  5. use support\facade\Logger;
  6. class TiktokTrack implements Consumer
  7. {
  8. // 要消费的队列名
  9. public $queue = 'tiktok_track';
  10. // 连接名,对应 plugin/webman/redis-queue/redis.php 里的连接`
  11. public $connection = 'default';
  12. // 消费
  13. public function consume($data)
  14. {
  15. //Logger::app(time());
  16. TrackService::cronDeal();
  17. }
  18. }