43 lines
990 B
PHP
43 lines
990 B
PHP
<?php
|
|
|
|
namespace App\Jobs;
|
|
|
|
use App\Facades\CommonService;
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Contracts\Queue\ShouldBeUnique;
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
use Illuminate\Foundation\Bus\Dispatchable;
|
|
use Illuminate\Queue\InteractsWithQueue;
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
class MakeGuide implements ShouldQueue
|
|
{
|
|
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
|
|
|
protected $user;
|
|
/**
|
|
* Create a new job instance.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function __construct($user)
|
|
{
|
|
$this->user = $user;
|
|
}
|
|
|
|
/**
|
|
* Execute the job.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function handle()
|
|
{
|
|
$user = $this->user;
|
|
$method = "GET";
|
|
// $url1 = "http://192.168.1.201:8585/dma/nutrient/".$user->id;
|
|
// CommonService::http($method, $url1);
|
|
$url2 = "http://192.168.1.201:8585/dma/guide/".$user->id;
|
|
CommonService::http($method, $url2);
|
|
}
|
|
}
|