<?php

namespace App\Jobs;

use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;

class SendTexts extends Job implements ShouldQueue
{
    use InteractsWithQueue, SerializesModels;
    private $data;

    /**
     * Create a new job instance.
     *
     * @return void
     */
    public function __construct($data)
    {
        //
        $data['send_time']=date("Y-m-d H:i:s");
        $this->data = $data;
    }
 
    /**
     * Execute the job.
     *
     * @return void
     */
    public function handle()
    {
        //
    	// $this->data['receive_time'] = date("Y-m-d H:i:s");
     //    echo json_encode($this->data);
     //    try{
     //    	 $TemplateWork = new TemplateWorksController($this->data['data']);
     //         $TemplateWork->do_work();
     //    }
     //    // 加上\ 全局抓取
     //    catch(\Exception $e){
     //    	//v('handle_ept: info:'.$e->getMessage());
     //    }

    }
}
