| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 | 
							- <?php
 
- namespace App\Jobs\Cron;
 
- use App\Models\Order;
 
- use App\Services\Common\OrderService;
 
- use Illuminate\Bus\Queueable;
 
- use Illuminate\Queue\SerializesModels;
 
- use Illuminate\Queue\InteractsWithQueue;
 
- use Illuminate\Contracts\Queue\ShouldQueue;
 
- use Illuminate\Foundation\Bus\Dispatchable;
 
- use Illuminate\Support\Facades\Cache;
 
- use Illuminate\Support\Facades\DB;
 
- use Illuminate\Support\Facades\Log;
 
- class CanselOrder implements ShouldQueue
 
- {
 
-     use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
 
-     const CREATE_LIST = 'create';
 
-     const UPDATE_LIST = 'update';
 
-     /**
 
-      * Create a new job instance.
 
-      *
 
-      * @return void
 
-      */
 
-     public function __construct()
 
-     {
 
-     }
 
-     /**
 
-      * Execute the job.
 
-      *
 
-      * @return void
 
-      */
 
-     public function handle(OrderService $orderService)
 
-     {
 
-         $order_id = $orderService->canselOrder();
 
-         if($order_id){
 
-             Order::whereIn('id', $order_id)->update(['is_pay'=>3]);
 
-         }
 
-     }
 
- }
 
 
  |