WechatCheck.php 874 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace App\Jobs\Video;
  3. use App\Service\Util\Support\Trace\TraceContext;
  4. use Illuminate\Bus\Queueable;
  5. use Illuminate\Contracts\Queue\ShouldBeUnique;
  6. use Illuminate\Contracts\Queue\ShouldQueue;
  7. use Illuminate\Foundation\Bus\Dispatchable;
  8. use Illuminate\Queue\InteractsWithQueue;
  9. use Illuminate\Queue\SerializesModels;
  10. class WechatCheck implements ShouldQueue
  11. {
  12. use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
  13. private $info;
  14. /**
  15. * Create a new job instance.
  16. */
  17. public function __construct($info)
  18. {
  19. $this->info = $info;
  20. }
  21. /**
  22. * Execute the job.
  23. */
  24. public function handle(): void
  25. {
  26. myLog('wechatCheck')->info('开始处理微信提审', [
  27. 'info' => $this->info
  28. ]);
  29. $traceContext = TraceContext::newFromParent($this->info['traceInfo']);
  30. }
  31. }