| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?php
- namespace App\Jobs;
- use Illuminate\Bus\Queueable;
- use Illuminate\Contracts\Queue\ShouldQueue;
- use Illuminate\Foundation\Bus\Dispatchable;
- use Illuminate\Queue\InteractsWithQueue;
- use Illuminate\Queue\SerializesModels;
- use Illuminate\Support\Facades\Http;
- class RejectedPushJob implements ShouldQueue
- {
- use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
- public $tries = 5;
- public $timeout = 120;
- /**
- * [['推单任务号','退回单号','审核号','asn']]
- */
- private array $pushData;
- /**
- * @param array $pushData
- */
- public function __construct(array $pushData)
- {
- $this->pushData = $pushData;
- }
- /**
- * Execute the job.
- *
- * @return void
- */
- public function handle()
- {
- $url = config('api.java.wms.rejectedPushTask.receivePush');
- $response = Http::post($url, $this->pushData);
- }
- }
|