HandlePastBill.php 988 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. namespace App\Jobs;
  3. use App\Services\OwnerPriceOperationService;
  4. use Illuminate\Bus\Queueable;
  5. use Illuminate\Contracts\Queue\ShouldQueue;
  6. use Illuminate\Foundation\Bus\Dispatchable;
  7. use Illuminate\Queue\InteractsWithQueue;
  8. /**
  9. * @Deprecated 结算历史账单处理
  10. */
  11. class HandlePastBill implements ShouldQueue
  12. {
  13. use Dispatchable, InteractsWithQueue, Queueable;
  14. protected $arr;
  15. /**
  16. * Create a new job instance.
  17. *
  18. * @param array $arr
  19. *
  20. * @return void
  21. */
  22. public function __construct(array $arr)
  23. {
  24. $this->arr = $arr;
  25. }
  26. /**
  27. * Execute the job.
  28. *
  29. * @param OwnerPriceOperationService $service
  30. *
  31. * @return void
  32. */
  33. public function handle(OwnerPriceOperationService $service)
  34. {
  35. ini_set('max_execution_time', 2500);
  36. list($rule,$owner,$discountIndex,$pivot,$month) = $this->arr;
  37. $service->handlePastBill($rule,$owner,$discountIndex,$pivot,$month);
  38. }
  39. }