|
@@ -0,0 +1,41 @@
|
|
|
|
+<?php
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * 循环上报,上报m个,停止上报n个
|
|
|
|
+ *
|
|
|
|
+ */
|
|
|
|
+
|
|
|
|
+namespace App\Jobs;
|
|
|
|
+
|
|
|
|
+use GuzzleHttp\Client;
|
|
|
|
+use Illuminate\Bus\Queueable;
|
|
|
|
+use Illuminate\Queue\SerializesModels;
|
|
|
|
+use Illuminate\Queue\InteractsWithQueue;
|
|
|
|
+use Illuminate\Contracts\Queue\ShouldQueue;
|
|
|
|
+use Illuminate\Foundation\Bus\Dispatchable;
|
|
|
|
+use Redis;
|
|
|
|
+use DB;
|
|
|
|
+use App\Modules\Callback\Services\QappCycleCallBackService;
|
|
|
|
+
|
|
|
|
+class CycleCallBack implements ShouldQueue
|
|
|
|
+{
|
|
|
|
+ use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
|
|
|
+
|
|
|
|
+ private $order_on;
|
|
|
|
+
|
|
|
|
+ public function __construct($order_on)
|
|
|
|
+ {
|
|
|
|
+ $this->order_on = $order_on;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * Execute the job.
|
|
|
|
+ *
|
|
|
|
+ * @return void
|
|
|
|
+ */
|
|
|
|
+ public function handle()
|
|
|
|
+ {
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+}
|